mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-07 14:08:47 +00:00
34 lines
807 B
TypeScript
34 lines
807 B
TypeScript
import { Button } from "@/examples/radix/ui/button"
|
|
import {
|
|
Card,
|
|
CardContent,
|
|
CardDescription,
|
|
CardFooter,
|
|
CardHeader,
|
|
CardTitle,
|
|
} from "@/examples/radix/ui/card"
|
|
|
|
export function CardSmall() {
|
|
return (
|
|
<Card size="sm" className="mx-auto w-full max-w-sm">
|
|
<CardHeader>
|
|
<CardTitle>Small Card</CardTitle>
|
|
<CardDescription>
|
|
This card uses the small size variant.
|
|
</CardDescription>
|
|
</CardHeader>
|
|
<CardContent>
|
|
<p>
|
|
The card component supports a size prop that can be set to
|
|
"sm" for a more compact appearance.
|
|
</p>
|
|
</CardContent>
|
|
<CardFooter>
|
|
<Button variant="outline" size="sm" className="w-full">
|
|
Action
|
|
</Button>
|
|
</CardFooter>
|
|
</Card>
|
|
)
|
|
}
|