Tabs - Aspect UI

The Tabs component allows users to navigate between different views or content sections. It supports horizontal/vertical layouts, icons, animations, and lazy loading.

Table of Contents#

TabContent Props#


PropTypeDefaultDescription
childrenReactNode-Content to display when the tab is active.
idstring-Unique identifier for the tab content, matching its corresponding TabItem ID.
classNamestring''Additional CSS class for styling the tab content.

TabItem Props#


PropTypeDefaultDescription
childrenReactNode-Label or content of the tab.
idstring-Unique identifier for the tab, used to match TabContent.
disabledbooleanfalseWhether the tab is disabled and non-interactive.
classNamestring''Additional CSS class for the tab item.
activeClassNamestring''CSS class applied when the tab is active.
disabledClassNamestring''CSS class applied when the tab is disabled.
onClick() => void-Callback triggered when the tab is clicked.

TabList Props#


PropTypeDefaultDescription
childrenReactNode-A collection of TabItem components.
classNamestring''Additional CSS class for the tab list container.

Tabs Props#


PropTypeDefaultDescription
childrenReactNode-TabList and TabContent components.
defaultActivestring-ID of the tab that should be active by default.
classNamestring''Additional CSS class for the root tabs container.