Tabs
Navigation
@rockshin/tao-uiSwitches 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.
Security settings.
Billing settings.
Card variant and sizes
General settings.
Security settings.
General settings.
Security settings.
General settings.
Security settings.
Controlled and disabled tabs
General settings.
Security settings.
Unavailable.
Externally controlled tabs
Use activeKey and onChange to keep tab selection in application state.
General settings content.
Security settings content.
Notification preferences.
activeKey: security
Disabled tabs
Disable unavailable content while leaving other tabs interactive.
This tab works.
This too.
Cannot reach.
Card tab sizes
Compare card tabs at different sizes and densities.
small
General settings content.
Security settings content.
Notification preferences.
medium
General settings content.
Security settings content.
Notification preferences.
large
General settings content.
Security settings content.
Notification preferences.
Provider size and local overrides
Inherit the provider size and explicitly override an individual tab group when needed.
General settings content.
Security settings content.
Notification preferences.
Unmount inactive panels
Compare preserved and unmounted panels by editing content before switching tabs.
Only this panel is in DOM when active.