Table
Lay out your data grid-style, like setting dishes on a dinner table clear and organized, perfect for comparison and review.
Installation
CLI
Manual
npx hq-kit add table
Basic
Preview
Code
# | Name | Type | Level |
---|---|---|---|
1 | Charizard | Fire, Flying | 67 |
2 | Blastoise | Water | 56 |
3 | Venusaur | Grass, Poison | 83 |
4 | Pikachu | Electric | 100 |
Bulk Actions
Preview
Code
# | Name | Type | Level | |
---|---|---|---|---|
1 | Charizard | Fire, Flying | 67 | |
2 | Blastoise | Water | 56 | |
3 | Venusaur | Grass, Poison | 83 | |
4 | Pikachu | Electric | 100 |
selected: []
Drag and Drop
Similar to GridList and ListBox, tables can also support drag and drop functionality.
Preview
Code
# | Name | Type | Level | ||
---|---|---|---|---|---|
1 | Charizard | Fire, Flying | 67 | ||
2 | Blastoise | Water | 56 | ||
3 | Venusaur | Grass, Poison | 83 | ||
4 | Pikachu | Electric | 100 |
Sorting
Preview
Code
Title | Director | Producer | Release Date | |
---|---|---|---|---|
Filtering
Preview
Code
Title | Director | Producer | Release Date | |
---|---|---|---|---|
No items found |
Resizable
Preview
Code
# | Name | Type | Level |
---|---|---|---|
1 | Charizard | Fire, Flying | 67 |
2 | Blastoise | Water | 56 |
3 | Venusaur | Grass, Poison | 83 |
4 | Pikachu | Electric | 100 |
Href
To create a clickable link within a table row, use the href
prop.
<Table.Row href='/collections/table-demo' />