Tabs
The Tab component assists in organizing groups of content. This can be especially helpful for landing pages.
Use
- Install the @pongo-ui/react-tabs component.
Using NPM
npm install @pongo-ui/react-tabs
Using Yarn
yarn add @pongo-ui/react-tabs
-
Install the @pongo-ui/react-provider and our theme tokens from @pongo-ui/react-theme
-
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>
)
}
- 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.