@cebus/react-table
v0.0.6
Published
The Table component displays sets of data.
Downloads
17
Readme
Table
The Table component displays sets of data.
Use
- Install the @cebus/react-table component.
Using NPM
npm install @cebus/react-table
Using Yarn
yarn add @cebus/react-table
Install the @cebus/react-provider and our theme tokens from @cebus/react-theme
Set up the provider in your app:
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
const MyApp = () => {
return (
<Provider theme={webLightTheme}>
<Provider>
)
}
- Integrate the Table component.
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
import { Table, ... } from '@cebus/react-table'
const MyApp = () => {
return (
<Provider theme={webLightTheme}>
<Table>
...
</Table>
<Provider>
)
}
API
To learn more about the Table API take a look at the Table Interface file.