@pongo-ui/react-tabs
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

Tabs

The Tab component assists in organizing groups of content. This can be especially helpful for landing pages.

Use

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

Using NPM

npm install @pongo-ui/react-tabs

Using Yarn

yarn add @pongo-ui/react-tabs
  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 Tab component.
import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'
import { TabList, Tab } from '@pongo-ui/react-tabs'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
      <TabList>
        <Tab value="1">First Tab</Tab>
        <Tab value="2">Second Tab</Tab>
      </TabList>
    <Provider>
  )
}

API

The Tab API extends off of FluentUI.

Readme

Keywords

none

Package Sidebar

Install

npm i @pongo-ui/react-tabs

Weekly Downloads

4

Version

0.0.11

License

MIT

Unpacked Size

100 kB

Total Files

125

Last publish

Collaborators

  • pongobuild
  • czearing