For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/components/tabs.md.
v0.0.57
  • English
  • Tabs

    Navigation@rockshin/tao-ui

    Switches between peer panels within the same page context.

    When to use

    Use Tabs to separate peer views without navigating away from the current task.

    Recommended

    • Use short tab labels.
    • Keep tab panels at comparable hierarchy.

    Avoid

    • Do not use Tabs for sequential steps.

    Examples

    Basic usage

    General settings.
    TSX

    Card variant and sizes

    General settings.
    General settings.
    General settings.
    TSX

    Controlled and disabled tabs

    General settings.
    TSX

    Externally controlled tabs

    Use activeKey and onChange to keep tab selection in application state.

    Security settings content.

    activeKey: security

    TSX

    Disabled tabs

    Disable unavailable content while leaving other tabs interactive.

    This tab works.
    TSX

    Card tab sizes

    Compare card tabs at different sizes and densities.

    small

    General settings content.

    medium

    General settings content.

    large

    General settings content.
    TSX

    Provider size and local overrides

    Inherit the provider size and explicitly override an individual tab group when needed.

    General settings content.
    TSX

    Unmount inactive panels

    Compare preserved and unmounted panels by editing content before switching tabs.

    Only this panel is in DOM when active.
    TSX

    API

    Tabs

    PropertyDescriptionTypeDefault Value
    classNameAdditional css classstring | undefined-