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
PropTypeDefaultDescription
idstringUnique identifier for the tab instance.
orientation"horizontal" | "vertical""horizontal"Sets the tab list orientation.
styleCSSPropertiesInline styles for the tab container.
classstringOptional CSS class for custom styling.
PropTypeDefaultDescription
scrollablebooleanfalseAllows horizontal scrolling of tab buttons.
lineStyleCSSPropertiesCustom 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.