0.0.3 • Published 2 years ago

@pongo-ui/react-table v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Table

The Table component displays sets of data.

Use

  1. Install the @pongo-ui/react-table component.

Using NPM

npm install @pongo-ui/react-table

Using Yarn

yarn add @pongo-ui/react-table
  1. Install the @pongo-ui/react-provider and our theme tokens from @pongo-ui/react-theme

  2. Set up the provider in your app:

import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
    <Provider>
  )
}
  1. Integrate the Table component.
import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'
import { Table, ... } from '@pongo-ui/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.