Table#
RippleUI comes with a table component that can be used to display data in a tabular format.
Default#
Simple example of table.
Type | Where | Description | Amount |
---|---|---|---|
1 | Cy Ganderton | Quality Control Specialist | Blue |
2 | Hart Hagerty | Desktop Support Technician | Purple |
3 | Brice Swyre | Tax Accountant | Red |
HTML
JSX
<div class="flex w-full overflow-x-auto"><table class="table"><thead><tr><th>Type</th><th>Where</th><th>Description</th><th>Amount</th></tr></thead><tbody><tr><th>1</th><td>Cy Ganderton</td><td>Quality Control Specialist</td><td>Blue</td></tr><tr><th>2</th><td>Hart Hagerty</td><td>Desktop Support Technician</td><td>Purple</td></tr><tr><th>3</th><td>Brice Swyre</td><td>Tax Accountant</td><td>Red</td></tr></tbody></table></div>
Zebra#
Table with zebra effect.
Type | Where | Description | Amount |
---|---|---|---|
1 | Cy Ganderton | Quality Control Specialist | Blue |
2 | Hart Hagerty | Desktop Support Technician | Purple |
3 | Brice Swyre | Tax Accountant | Red |
3 | Brice Swyre | Tax Accountant | Red |
3 | Brice Swyre | Tax Accountant | Red |
HTML
JSX
<div class="flex w-full overflow-x-auto"><table class="table-zebra table"><thead><tr><th>Type</th><th>Where</th><th>Description</th><th>Amount</th></tr></thead><tbody><tr><th>1</th><td>Cy Ganderton</td><td>Quality Control Specialist</td><td>Blue</td></tr><tr><th>2</th><td>Hart Hagerty</td><td>Desktop Support Technician</td><td>Purple</td></tr><tr><th>3</th><td>Brice Swyre</td><td>Tax Accountant</td><td>Red</td></tr><tr><th>3</th><td>Brice Swyre</td><td>Tax Accountant</td><td>Red</td></tr><tr><th>3</th><td>Brice Swyre</td><td>Tax Accountant</td><td>Red</td></tr></tbody></table></div>
Hover#
Table with hover effect.
Type | Where | Description | Amount |
---|---|---|---|
1 | Cy Ganderton | Quality Control Specialist | Blue |
2 | Hart Hagerty | Desktop Support Technician | Purple |
3 | Brice Swyre | Tax Accountant | Red |
3 | Brice Swyre | Tax Accountant | Red |
3 | Brice Swyre | Tax Accountant | Red |
HTML
JSX
<div class="flex w-full overflow-x-auto"><table class="table-hover table"><thead><tr><th>Type</th><th>Where</th><th>Description</th><th>Amount</th></tr></thead><tbody><tr><th>1</th><td>Cy Ganderton</td><td>Quality Control Specialist</td><td>Blue</td></tr><tr><th>2</th><td>Hart Hagerty</td><td>Desktop Support Technician</td><td>Purple</td></tr><tr><th>3</th><td>Brice Swyre</td><td>Tax Accountant</td><td>Red</td></tr><tr><th>3</th><td>Brice Swyre</td><td>Tax Accountant</td><td>Red</td></tr><tr><th>3</th><td>Brice Swyre</td><td>Tax Accountant</td><td>Red</td></tr></tbody></table></div>
Compact#
Table with compact style.
Type | Where | Description | Amount |
---|---|---|---|
1 | Cy Ganderton | Quality Control Specialist | Blue |
2 | Hart Hagerty | Desktop Support Technician | Purple |
3 | Brice Swyre | Tax Accountant | Red |
3 | Brice Swyre | Tax Accountant | Red |
4 | Brice Swyre | Tax Accountant | Red |
HTML
JSX
<div class="flex w-full overflow-x-auto"><table class="table-compact table max-w-4xl"><thead><tr><th>Type</th><th>Where</th><th>Description</th><th>Amount</th></tr></thead><tbody><tr><th>1</th><td>Cy Ganderton</td><td>Quality Control Specialist</td><td>Blue</td></tr><tr><th>2</th><td>Hart Hagerty</td><td>Desktop Support Technician</td><td>Purple</td></tr><tr><th>3</th><td>Brice Swyre</td><td>Tax Accountant</td><td>Red</td></tr><tr><th>3</th><td>Brice Swyre</td><td>Tax Accountant</td><td>Red</td></tr><tr><th>3</th><td>Brice Swyre</td><td>Tax Accountant</td><td>Red</td></tr></tbody></table></div>
API#
className | Description |
---|---|
table | Table base class |
table-zebra | Will apply a background to odd elements |
table-hover | Will apply hover efect to each row |
table-compact | The table will have less pading between each rows |