@nero-ui/table
v1.0.0-alpha.0
Published
table component for nero design system
Readme
Nero table
Nero table is a strict and customizable table component for web development projects, designed for simplicity and adherence to strict design guidelines.
Package installation
Instal package using pnpm
pnpm add @nero-ui/tableInstal package using yarn
yarn add @nero-ui/tableInstal package using npm
npm i @nero-ui/tableUsage/Examples
import React from "react";
import {Table, Tbody, Td, Tfoot, Th, Thead, Tr} from "@nero-ui/table";
import ReactDOM from "react-dom/client";
const App = () => (
<div>
<Table variant="striped">
<Thead>
<Tr>
<Th>th</Th>
</Tr>
</Thead>
<Tbody>
<Tr>
<Td>td</Td>
</Tr>
<Tr>
<Td>td</Td>
</Tr>
<Tr>
<Td>td</Td>
</Tr>
<Tr>
<Td>td</Td>
</Tr>
</Tbody>
<Tfoot>
<Tr>
<Td>foot</Td>
</Tr>
</Tfoot>
</Table>
</div>
);
ReactDOM.createRoot(document.getElementById("app")!).render(<App />);Props @nero-ui/table
Props that you can pass to <Table {...props} />
| Prop Name | Value | required | | :-------- | :-------------------------------- | :------- | | fullWidth | boolean | false | | variant | "simple" / "unstyled" / "striped" | true |
Props that you can pass to <Thead {...props} />
| Prop Name | Value | required | | :-------- | :-------- | :------- | | children | ReactNode | true |
Props that you can pass to <Tbody {...props} />
| Prop Name | Value | required | | :-------- | :-------- | :------- | | children | ReactNode | true |
Props that you can pass to <Tfoot {...props} />
| Prop Name | Value | required | | :-------- | :-------- | :------- | | children | ReactNode | true |
Props that you can pass to <Tr {...props} />
| Prop Name | Value | required | | :-------- | :-------- | :------- | | children | ReactNode | true |
Props that you can pass to <Th {...props} />
| Prop Name | Value | required | | :-------- | :-------- | :------- | | children | ReactNode | true |
Props that you can pass to <Td {...props} />
| Prop Name | Value | required | | :-------- | :-------- | :------- | | children | ReactNode | true |
