Pular para o conteúdo

Tab

Este conteúdo não está disponível em sua língua ainda.

The Tab component is designed to organize content into separate views where only one section is visible at a time. It’s ideal for dashboards, forms, or any interface that needs segmented content.

  • Orientation: Supports horizontal (default) and vertical tabs.
  • Custom content: Each tab can contain any content including icons, components, or custom snippets.
  • Transitions: Smooth entry and exit animations using transitions like fade or fly.
  • Scrollable: Tab headers can scroll if there are many options.
  • Styling: Supports line styles, hover effects, and theme-based colors.
test1
test1
test1

| Prop | Type | Default | Description | | ------------- | --------------- | ----------- | --------------------------------------- | ------------------------------ | | id | string | — | Unique identifier for the tab instance. | | orientation | "horizontal" | "vertical" | "horizontal" | Sets the tab list orientation. | | style | CSSProperties | — | Inline styles for the tab container. | | class | string | — | Optional CSS class for custom styling. |

| Prop | Type | Default | Description | | --------------- | --------------------- | ----------- | -------------------------------------------------- | ----------------------------------------------- | | scrollable | boolean | false | Allows horizontal scrolling of tab buttons. | | lineStyle | CSSProperties | — | Custom styles for the indicator line. | | hoverFollower | { bgColor: string } | — | Adds a hover background effect behind tab buttons. | | orientation | "horizontal" | "vertical" | "horizontal" | Controls list orientation independently of Tab. |

PropTypeDefaultDescription
isActivebooleanfalseWhether this panel is currently visible.
transitionTransitionConfig[]transitions applied when showing/hiding the panel.
  • Tabs can include icons, custom HTML, or snippets within the tab button.
  • Each panel is isolated and can render complex content.
  • Works seamlessly with responsive layouts; vertical tabs are useful for side navigation.