Skip to content
  • Android
  • iOS
  • Web

Tabs

A Tabs component is a UI element that allows users to switch between different views or sections of content within the same interface. Organized as a series of labeled tabs, this component enhances navigation by displaying only one section at a time, helping to reduce clutter and improve user experience. Users can easily access various related content or features by clicking on the respective tabs, making it ideal for dashboards, settings pages, or any multi-section layout.

Live examples

Example.tsx

Attributes

NTabs attributes
NameTypeDefaultDetails
itemsreadonly (string | NTabsItem)[]Optional
childrenReactNodeOptional
valuestringOptional
selectedstringOptional
defaultValuestringOptional
onValueChange((value: string) => void)Optional
onChange((value: string) => void)Optional
variant"primary" | "secondary"OptionalPrimary uses a rounded track. Secondary marks the active tab with an underline.
orientation"horizontal" | "vertical"Optional
isFullbooleanOptionalFill the available width of a horizontal tab list.
classNamestringOptionalSupported Tailwind-style utilities, resolved entirely in Rust. See the engine README.
listClassNamestringOptional
tabClassNamestringOptional
itemClassNamestringOptionalAlias for tabClassName.
triggerClassNamestringOptionalAlias for tabClassName.
activeItemClassNamestringOptional
contentClassNamestringOptional
ariaLabelstringOptional
idstringOptional
Engine reference for TabsSet up engine components

Tags