Table
This source is documented by the existing examples linked below.
src/components/ui/table.tsxUsage contract
- Reuse this composition from its source and demo. Keep its existing semantic structure and locale/data contracts.
Examples
- table
<div class="overflow-hidden rounded-card bg-panel shadow-lift"> <Table> <TableHeader><TableRow><TableHead>{locale === 'de' ? 'Kennzahl' : 'Figure'}</TableHead><TableHead>{locale === 'de' ? 'Was' : 'What'}</TableHead></TableRow></TableHeader> <TableBody> {proof.map((n) => <TableRow><TableCell className="text-lg font-medium text-ink tabular-nums">{t(locale, `proof.${n}.v`)}</TableCell><TableCell>{t(locale, `proof.${n}.t`)}</TableCell></TableRow>)} </TableBody> </Table> </div>
API
Extracted from the source with the TypeScript parser. Inherited and imported types remain references; implementation is authoritative.
Table({className, ...props}: React.ComponentProps<'table'>)TableHeader({className, ...props}: React.ComponentProps<'thead'>)TableBody(props: React.ComponentProps<'tbody'>)TableRow({className, ...props}: React.ComponentProps<'tr'>)TableHead({className, ...props}: React.ComponentProps<'th'>)TableCell({className, ...props}: React.ComponentProps<'td'>)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/table.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