āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/preetecool/roi-ui/ui/table ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
npx shadcn@latest add @roiui/table
npx shadcn@latest add @roiui/table-tailwind
</CodeBlockTab>
<CodeBlockTab value="pnpm">
pnpm dlx shadcn@latest add @roiui/table
pnpm dlx shadcn@latest add @roiui/table-tailwind
</CodeBlockTab>
</CodeBlockTabs>
</InstallationTabsContent>
<InstallationTabsContent value="manual" data-manual="true">
Copy and paste the following files:
<ComponentSource name="table" />
</InstallationTabsContent> </InstallationTabs><CodeBlock filename="anatomy" language="tsx" code={`<Table> <TableCaption>Optional caption</TableCaption> <TableHeader> <TableRow> <TableHead>Header</TableHead> </TableRow> </TableHeader> <TableBody> <TableRow> <TableCell>Cell</TableCell> </TableRow> </TableBody> <TableFooter> <TableRow> <TableCell>Footer</TableCell> </TableRow> </TableFooter>
</Table>`} /><PropTable data={[ { prop: "variant", type: '"default" | "bordered" | "striped"', default: '"default"', description: "The visual style variant of the table", }, { prop: "size", type: '"sm" | "md" | "lg"', default: '"md"', description: "The size/padding of table cells", }, { prop: "className", type: "string", description: "Additional CSS classes to apply to the table", }, ]} />
<PropTable data={[ { prop: "className", type: "string", description: "Additional CSS classes to apply to the table header", }, ]} />
<PropTable data={[ { prop: "className", type: "string", description: "Additional CSS classes to apply to the table body", }, ]} />
<PropTable data={[ { prop: "className", type: "string", description: "Additional CSS classes to apply to the table footer", }, ]} />
<PropTable data={[ { prop: "className", type: "string", description: "Additional CSS classes to apply to the row", }, { prop: "onClick", type: "function", description: "Click handler for interactive rows", }, ]} />
<PropTable data={[ { prop: "align", type: '"left" | "center" | "right"', default: '"left"', description: "Text alignment for the header cell", }, { prop: "className", type: "string", description: "Additional CSS classes to apply to the header cell", }, ]} />
<PropTable data={[ { prop: "align", type: '"left" | "center" | "right"', default: '"left"', description: "Text alignment for the data cell", }, { prop: "className", type: "string", description: "Additional CSS classes to apply to the data cell", }, ]} />
<PropTable data={[ { prop: "className", type: "string", description: "Additional CSS classes to apply to the caption", }, ]} />
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā