Documentation
Components
Table

Table

The Table component is used to display data in a structured format with rows and columns. It supports various features such as sorting, and customizable styling.

Installation

Install the package

npm i @start-base/start-ui

Add the styles

To use the React form elements styles in a Next.js project, import the styles in your layout.tsx file.

app/layout.tsx
import "@start-base/start-ui/styles.css";

Import the component

import Table from '@start-base/start-ui/Table';

Usages

Table Default

NameAgeEmail
John Doe28[email protected]
Jane Smith34[email protected]
Alice Johnson45[email protected]

Table With Custom Empty Text

NameAgeEmail
Custom empty text

API

NameTypeDefaultVariantsDescription
columnsarrayColumns of the table
dataarrayData of the table
emptyTextstringEmpty text of the table
rowClassNamestringRow class name of the table