Components
An empty container with basic styling applied, perfect for composing components. Works as an actionable element with href or onClick, supports a selected state for group selection, raised elevation, custom or zero padding for media content, section composition with dividers, bleed and height control.
npx @21st-dev/cli add reshaped/reshaped-cardLoading preview...
import { Image, Reshaped, View } from "reshaped/bundle";
import Card from "@/components/ui/reshaped-card";
export default function Demo() {
return (
<Reshaped theme="slate">
<div style={{ maxWidth: 520, width: "100%", margin: "0 auto", padding: 24 }}>
<View width="50%">
<Card padding={0}>
<View aspectRatio={16 / 9}>
<Image src="https://www.reshaped.so/img/examples/image-retina.webp" />
</View>
<View padding={4}>
Located in a quiet street in hip and happening Amsterdam East near
the Beukenplein and Oosterpark.
</View>
</Card>
</View>
</div>
</Reshaped>
);
}
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...