shadcn.io is not affiliated with official shadcn/ui
Table examples · Standard
Table Without Dividers for React
A table of products with no lines between the rows.
Framework
UI library
Four products in a frame with no row rules: every TableRow clears its bottom border, and the header row also turns off its hover fill. The rows are told apart by their spacing and the hover on the body rows. Use it for short lists in a quiet layout, such as a card or a summary panel.
Preview
Installation
Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.
FAQ
How are the row lines removed?
Every body TableRow sets border-b-0, which clears the bottom border that TableRow draws. The header TableRow sets it too.
Does the header row highlight on hover?
The header
TableRow sets hover:bg-transparent, so hovering the labels does not fill the row.Body rows still use hover:bg-muted/50.How are price and stock aligned?
Both headers and both cells use text-end. The product name cell is font-medium. Category is plain text.
Related
- Basic TableA bordered table of users with their
- Table with AvatarA table of team members with an avatar
- Striped TableA table of transactions with every other
- Standard CardA basic card with a title, a description
- Badge with Text (Standard)A default badge with a short label for a
- Basic Data Table with CheckboxesA table of products with a checkbox on