Components
- Accordion
- Alert Dialog
- Alert
- Autocomplete
- Avatar
- Badge
- Button Group
- Button
- Card
- Carousel
- Chart
- Checkbox
- Clipboard
- Collapsible
- Combobox
- Command
- Context Menu
- Date Picker
- Dialog
- Editable
- Field
- File Upload
- Floating Panel
- Hover Card
- Input Group
- Input OTP
- Input
- Item
- Kbd
- Marquee
- Menu
- Native Select
- Number Input
- Pagination
- Popover
- Progress
- QR Code
- Radio Group
- Rating Group
- Scroll Area
- Select
- Separator
- Sheet
- Skeleton
- Slider
- Spinner
- Splitter
- Steps
- Switch
- Table
- Tabs
- Textarea
- Toast
- Toggle Group
- Toggle
- Tooltip
- Tour
- Tree View
| Name | Role | Status | |
|---|---|---|---|
| Alice Johnson | alice.johnson@example.com | Admin | Active |
| Bruno Silva | bruno.silva@example.com | Editor | Invited |
| Clara Mendes | clara.mendes@example.com | Viewer | Inactive |
| David Park | david.park@example.com | Editor | Active |
Installation
pnpm dlx shadcn@latest add @shark-ui/table
Usage
import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, TableFooter, } from "@/components/ui/table";
<Table> <TableCaption>A list of users in your workspace.</TableCaption> <TableHeader> <TableRow> <TableHead>Name</TableHead> <TableHead>Email</TableHead> <TableHead>Role</TableHead> <TableHead>Status</TableHead> </TableRow> </TableHeader> <TableBody> <TableRow> <TableCell>Vinicius</TableCell> <TableCell>vinicius@example.com</TableCell> <TableCell>Developer</TableCell> <TableCell>Active</TableCell> </TableRow> </TableBody> </Table>
Examples
Default
| Name | Role | Status | |
|---|---|---|---|
| Alice Johnson | alice.johnson@example.com | Admin | Active |
| Bruno Silva | bruno.silva@example.com | Editor | Invited |
| Clara Mendes | clara.mendes@example.com | Viewer | Inactive |
| David Park | david.park@example.com | Editor | Active |