Card
This source is documented by the existing examples linked below.
src/components/ui/card.tsxUsage contract
- Reuse this composition from its source and demo. Keep its existing semantic structure and locale/data contracts.
Examples
- card
<Card className="max-w-text"> <CardHeader><CardTitle>{t(locale, 'ds.cardTitle')}</CardTitle><CardDescription>{t(locale, 'ds.cardBody')}</CardDescription></CardHeader> <Separator /> <div class="flex gap-2"><Badge tone="brand" dot>{t(locale, 'flag.tag')}</Badge></div> </Card>
API
Extracted from the source with the TypeScript parser. Inherited and imported types remain references; implementation is authoritative.
Card({className, ...props}: React.ComponentProps<'div'>)CardHeader({className, ...props}: React.ComponentProps<'div'>)CardTitle({className, ...props}: React.ComponentProps<'h3'>)CardDescription({className, ...props}: React.ComponentProps<'p'>)CardContent({className, ...props}: React.ComponentProps<'div'>)CardFooter({className, ...props}: React.ComponentProps<'div'>)Source usage
Website reference
This is static source evidence. A reachable module may contain conditional or unused branches. External consumers and staged static pages are outside this scan. No status authorizes deletion.
Website
Documentation
- src/pages/design-system/[category].astro
- src/components/ds/DesignSystemPage.astro
- src/components/ds/PrimitiveDemos.astro
- src/components/ui/card.tsx
Preview
- src/pages/en/vorschlag/home-mix-r3.astro
- src/components/site/pages/HomeMixPage.astro
- src/components/site/mix/ZainDemo.astro
- src/components/site/mix/DecisionObject.tsx
- src/components/ui/card.tsx
Consumers in source
Direct static, dynamic and type imports. Imports do not prove that a branch renders or that a proposal is published.
Dependencies
react@/lib/utils·src/lib/utils.ts