- Accordion
- Alert Dialog
- Avatar
- Badge
- Banner
- BreadcrumbSOON
- Button
- Button Group
- Calendar
- Callout
- Card
- Checkbox
- CodeblockSOON
- Color Picker
- Container
- Control Group
- Dialog
- Dropdown
- File Uploader
- FlexBox
- FormSOON
- Grid View
- IconSOON
- ImageSOON
- Input
- Link
- List
- MenuSOON
- PaginationSOON
- Popover
- Progress
- Radio
- Section
- Select
- Separator
- Skeleton
- SliderSOON
- SpinnerSOON
- Switch
- Table
- Tabs
- Tag
- Textarea
- ToastSOON
- Tooltip
Table
Display data that's easy on the eyes with our Table. Rows and columns have never looked so goodExample
Name | Role | Age |
---|---|---|
Jane Doe | Software Engineer | 32 |
John Smith | Product Manager | 45 |
Sarah Williams | Data Scientist | 29 |
Michael Brown | UI/UX Designer | 38 |
API Reference
Component | Description |
---|---|
Table | This is your top-level component for representing structured data in a tabular format. It facilitates the organization of data rows and columns, offering an intuitive layout for users to understand your data. |
Table.Header | This subcomponent represents the header of your table. It typically contains Table.HeaderCell components that denote the titles of your table columns. |
Table.HeaderCell | This is an individual header cell in your table. It is used within the Table.Header component and typically contains text denoting what kind of information the corresponding column in the table holds. |
Table.Body | This subcomponent contains the main content of your table. It typically houses multiple Table.Row components which encapsulate your data. |
Table.Footer | The footer of your table. It's an optional component that can be used to display extra information or summaries of the table data. |
Table.Row | A Table.Row is a single row in your table, containing individual Table.Cell components. Each Table.Cell in a row corresponds to a Table.HeaderCell in the table's header. |
Table.Cell | This is an individual cell within a Table.Row. It is used to display the data in your table. Each cell corresponds to a specific data point in your dataset. |
Component Properties
Table
Prop | Type | Default | Explanation |
---|---|---|---|
size | string | md | Sets the overall padding and font size of the table. sm creates a small table with reduced padding and font size, md sets medium padding and font size, and lg sets large padding and font size. |
striped | boolean | false | If set to true, it alternates the background color of table rows for easy reading. |
hover | boolean | true | When set to true, it changes the background color of the table rows on mouse hover, providing a visual indicator of the hovered row. |
compact | boolean | true | This prop, when set to true, reduces the space between the table cells, giving the table a more compact appearance. |
Table.HeaderCell
Prop | Type | Default | Explanation |
---|---|---|---|
align | string | left | This property adjusts the alignment of the text within the cell or header cell. If set to left, the text aligns to the left side of the cell. If set to center, the text is centered within the cell. If set to right, the text aligns to the right side of the cell. This provides FlexBoxibility in formatting your table for optimal readability and aesthetics. |
Table.Cell
Prop | Type | Default | Explanation |
---|---|---|---|
align | string | left | This property adjusts the alignment of the text within the cell or header cell. If set to left, the text aligns to the left side of the cell. If set to center, the text is centered within the cell. If set to right, the text aligns to the right side of the cell. This provides FlexBoxibility in formatting your table for optimal readability and aesthetics. |