# Tables
Tables group content in to rows and columns. Create nice and responsive css tables, create simple tables, stripped tables, hoverable table, borederd table and responsive table with funcss
Home
/ Tables
import { Table } from "funuicss";
#
Simple Table
This is s simple table consisting of course column, creator, students and ratings
React / Next.js
Records: 30
Employee Records
FullName | Age | Address | Country | Edit | |
---|---|---|---|---|---|
John Doe | 25 | 123 Main St | john.doe@example.com | USA | |
Jane Smith | 30 | 456 Elm St | jane.smith@example.com | Canada | |
Alice Johnson | 28 | 789 Oak St | alice.johnson@example.com | UK | |
Michael Brown | 35 | 101 Pine St | michael.brown@example.com | USA | |
Emily Wilson | 27 | 234 Maple St | emily.wilson@example.com | Germany | |
David Lee | 40 | 567 Birch St | david.lee@example.com | France | |
Sophia Martinez | 29 | 890 Cedar St | sophia.martinez@example.com | Canada | |
James Taylor | 32 | 321 Oak St | james.taylor@example.com | UK | |
Olivia Garcia | 31 | 654 Elm St | olivia.garcia@example.com | Japan | |
Daniel Rodriguez | 26 | 987 Maple St | daniel.rodriguez@example.com | China |
1
2
3
Table
The Table is used to create a table
Prop | Description | Value(s) |
---|---|---|
`stripped` | Adds zebra stripes to table rows (inverted by `noStripped`) | `Boolean` |
`bordered` | Adds borders to the table and its cells | `Boolean` |
`hoverable` | Adds hover effect to rows for better interactivity | `Boolean` |
`light` | Applies a light theme to the table | `Boolean` |
`dark` | Applies a dark theme to the table | `Boolean` |
`head` | Custom table header content as ReactNode | `ReactNode` |
`body` | Custom table body content as ReactNode | `ReactNode` |
`title` | Title displayed above the table | `String` |
`funcss` | Custom CSS or utility classes to style the table container | `String` |
`showTotal` | Shows the total number of items in the table | `Boolean` |
`isLoading` | Displays a loading state when data is being fetched | `Boolean` |
`data` | Table data with fields, values, and column titles | `{ fields: string[], data: any[], titles: string[] }` |
`right` | Element placed on the top-right of the table (e.g. actions, filters) | `ReactNode` |
`height` | Height of the table (useful for scrollable tables) | `Number (px)` |
`pageSize` | Number of rows to display per page | `Number` |
`customColumns` | Override columns with custom render logic | `{ title: string; render: (data) => ReactNode; onClick?: (data) => void }[]` |
`filterableFields` | List of data field names to make filterable/searchable | `String[]` |
`children` | Optional React children to render inside the table container | `ReactNode` |