Table
<table>
HTML element, but with additional functionality and style enhancements.The Table component in Chakra UI is made up of several subcomponents, each playing an important role in the overall structure and functionality.
Table
: The main container for the table that sets up the necessary styling and context for its child components.Thead
: Defines a table header section. This is where you would place your table header row(s).Tbody
: Defines a table body section. This contains all of your main data rows.Tfoot
: Defines a table footer section. This is an optional section that can be used for summing up data or providing additional table details.Tr
: Represents a table row. This is a container for table cell components.Th
: Represents a table header cell. It provides labeling information for its respective column.Td
: Represents a table data cell. This is where individual pieces of data are displayed in their respective rows and columns.TableCaption
: An optional component that provides a label or summary for the table.TableContainer
: A wrapper around the Table that provides a means of controlling the overflow of content.These components can be imported as follows:
Examples
Basic Usage
Type of Coffee | Description |
---|---|
Espresso | A full-flavored, concentrated form of coffee that is served in 'shots'. |
Americano | Espresso diluted with hot water, making it a less-concentrated version of regular espresso. |
Latte | Espresso mixed with hot steamed milk, usually topped with a small amount of foam. |
Code
Striped Table
Type of Coffee | Description |
---|---|
Espresso | A full-flavored, concentrated form of coffee that is served in 'shots'. |
Americano | Espresso diluted with hot water, making it a less-concentrated version of regular espresso. |
Latte | Espresso mixed with hot steamed milk, usually topped with a small amount of foam. |
Code
Table Sizes
Type of Coffee | Description |
---|---|
Espresso | A full-flavored, concentrated form of coffee that is served in 'shots'. |
Americano | Espresso diluted with hot water, making it a less-concentrated version of regular espresso. |
Latte | Espresso mixed with hot steamed milk, usually topped with a small amount of foam. |
Type of Coffee | Description |
---|---|
Espresso | A full-flavored, concentrated form of coffee that is served in 'shots'. |
Americano | Espresso diluted with hot water, making it a less-concentrated version of regular espresso. |
Latte | Espresso mixed with hot steamed milk, usually topped with a small amount of foam. |
Code
The Table Container
Espresso | A full-flavored, concentrated form of coffee that is served in 'shots'. |
Americano | Espresso diluted with hot water, making it a less-concentrated version of regular espresso. |
Latte | Espresso mixed with hot steamed milk, usually topped with a small amount of foam. |
Code
Complex Table
Product | Description | Quantity | Price |
---|---|---|---|
Espresso | A full-flavored, concentrated form of coffee that is served in 'shots'. | 50 | $3.00 |
Americano | Espresso diluted with hot water, making it a less-concentrated version of regular espresso. | 30 | $2.50 |
Latte | Espresso mixed with hot steamed milk, usually topped with a small amount of foam. | 20 | $4.00 |
Total Quantity | 100 | $9.50 |
Code
Did you know?
Creative Idea No. 1
Name | Age | Address |
---|---|---|
John Doe | 24 | 123 Main St |
Jane Doe | 23 | 123 Main St |
Chester Cheetah | 33 | 987 Wild Cat Lane |
Code
Creative Idea No. 2
Name | Age | Details |
---|---|---|
John Doe | 24 | Click for more |
Code
Creative Idea No. 3
Task | Progress |
---|---|
Task 1 | |
Task 2 | |
Task 3 |
Code
copyright © 2023 IHeartComponents | evanmarie.com
created with love by the I♥️Components team using
Special thanks to Stefan Bohacek / Generative Placeholders.