Table
Rows and columns of data under a header, scrolling sideways on a phone.
Add it to your project
Or install the packages yourselfTerminal
npm install @heroui/react
First time with HeroUI? Set it up once.
The code
*/
import {Table} from "@heroui/react";
export default function TableDemo() {
return (
<Table>
<Table.ScrollContainer>
<Table.Content aria-label="Team members" className="min-w-[600px]">
<Table.Header>
<Table.Column isRowHeader>Name</Table.Column>
<Table.Column>Role</Table.Column>
<Table.Column>Status</Table.Column>This comes with paid plans
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.
Changed for this site: A default export (HeroUI's docs use named ones).