Components: Shadcn UI
Table
Understand the design system and contribute to it
Component preview
The live preview for UI components is handled by components/atoms/codedocs/ComponentPreview.tsx. Use it directly inside MDX whenever you want a playground-style embed. Provide componentProps to set default values and propOptions to surface toggle-able props next to the preview.
Preview
Prop reference
Auto-generated from the component source
Table
className
React.ComponentProps<"table">
TableBody
className
React.ComponentProps<"tbody">
TableCaption
className
React.ComponentProps<"caption">
TableCell
className
React.ComponentProps<"td">
TableFooter
className
React.ComponentProps<"tfoot">
TableHead
className
React.ComponentProps<"th">
TableHeader
className
React.ComponentProps<"thead">
TableRow
className
React.ComponentProps<"tr">
Code