0.0.1 • Published 3 years ago

@cebus/react-accordion v0.0.1

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

Accordion

The Accordion component is used to show and hide nested information.

Use

  1. Install the @cebus/react-accordion component.

Using NPM

npm install @cebus/react-accordion

Using Yarn

yarn add @cebus/react-accordion
  1. Install the @cebus/react-provider and our theme tokens from @cebus/react-theme

  2. 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>
  )
}
  1. Integrate the Accordion component.
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
import { Accordion, ... } from '@cebus/react-accordion'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
        <Accordion >
        ...
        </Accordion>
    <Provider>
  )
}

API

To learn more about the Accordion API take a look at the Accordion Interface file.