export const title = "Table components" export const description = "Free and open-source React table components built for modern applications and websites. These tables are built using React Aria and styled with Tailwind CSS." export const links = { github: "https://github.com/untitleduico/react/tree/main/components/application/table", rac: "https://react-spectrum.adobe.com/react-aria/Table.html" } import * as Demos from "@/components/application/table/table.demo.tsx"; ## Installation You can add this table component using our CLI or manually: ```bash npx untitledui@latest add table ``` Copy the files below into your project: Great! Now you can start using the table components in your project by just copy/pasting our examples below. ## Sizes Our table components come in 2 sizes: `sm` and `md`. You can easily switch between them by changing the `size` prop either on the `TableCard.Root` or on the `Table` component. ```tsx // [!code word:size="sm"] {/* rest of the table components */} ``` ```tsx // [!code word:size="sm"] {/* rest of the table components */}
``` ### Table small size example {{ tocOnly:true}} ## Table examples Below are examples and variations of this table component: ### Divider line 01 {{ tocOnly:true}} ### Alternating fills 01 {{ tocOnly:true}} ### Divider line 02 {{ tocOnly:true}} ### Alternating fills 02 {{ tocOnly:true}} ### Divider line 03 {{ tocOnly:true}} ### Alternating fills 03 {{ tocOnly:true}} ### Divider line 04 {{ tocOnly:true}} ### Alternating fills 04 {{ tocOnly:true}} ### No vendors found {{ tocOnly:true}} ### Something went wrong {{ tocOnly:true}} ### No users found {{ tocOnly:true}} ### Add first integration {{ tocOnly:true}} ### Invite first user {{ tocOnly:true}} ### Offline state {{ tocOnly:true}}