Base Components
Data Table
Data table is a 2-dimensional data structure where each row is an item, and each column is a data point about the item.
Installation
Create a table.tsx
file and paste the following code into it.
/components/ui/table.tsx
Update the import paths to match your project setup.
Examples
We will give you examples on how to create complex Data Tables with @tanstack/react-table
using our Table primitives. Let's start by installing the package:
terminal
Row Selection
Member Name | Title | Projects | Member Documents | Status | ||
---|---|---|---|---|---|---|
James Brown[email protected] | Marketing ManagerSince Aug, 2021 | Monday.comCampaign Strategy Brainstorming | brown-james.pdf2.4 MB | Active | ||
Sophia Williams[email protected] | HR AssistantSince Aug, 2021 | NotionEmployee Engagement Survey | williams-sophia.pdf2.4 MB | Active | ||
Arthur Taylor[email protected] | Entrepreneur / CEOSince May, 2022 | SpotifyVision and Goal Setting Session | taylor-arthur.pdf2.4 MB | Absent | ||
Emma Wright[email protected] | Front-end DeveloperSince Sep, 2022 | FormcarryUser Feedback Analysis | wright-emma.pdf1.9 MB | Active | ||
Matthew Johnson[email protected] | Data Software EngineerSince Feb, 2022 | LoomData Analysis Methodology | johnson-matthew.pdf2.9 MB | Active | ||
Laura Perez[email protected] | Fashion DesignerSince Mar, 2022 | TidalDesign Trends and Inspirations | perez-laura.pdf2.5 MB | Absent | ||
Wei Chen[email protected] | Operations ManagerSince July, 2021 | DropboxProcess Optimization Brainstorming | chen-wei.pdf2.6 MB | Active |
API Reference
These examples are based on the Tanstack Table package. Refer to their documentation for the API reference.
© 2024 AlignUI Design System. All rights reserved.