Components
Tab
Code

Tab

<TabProvider>
  <TabList>
    <Tab>Tab 1</Tab>
    <Tab>Tab 2</Tab>
  </TabList>
  <TabPanel>Tab 1</TabPanel>
  <TabPanel>Tab 2</TabPanel>
</TabProvider>

Parameters

props

  • Type: @vtex/shoreline-components.TabProps & @types/react.React.RefAttributes<typescript.HTMLButtonElement>

Props

asChild (optional)

Enable children composition

  • Type: boolean

  • Default: false

View source (opens in a new tab)