Tabs

Creates an easy to use Tabs component that allows for toggling between elements.

Once imported it can be modified the way you want.

Prefixes

  • ch-tabs
  • ch-tabsTS

Props

Tabs takes the following props:

  • data: TabData[]
  • stretched: boolean

TabData contains the following props:

  • title: string
  • content: ReactNode

Example: An example of the usage is provided in the snippet.

Preview

Tab1 content
Tab1 content