Navigation
Tabs
Tabs - Tab navigation component refactored for Material 3 Provides tabbed navigation with optional counts and content slots. Accessibility: - Supports keyboard navigation with Arrow keys - Proper ARIA roles: tablist, tab, tabpanel - aria-selected indicates active tab - aria-controls links tab to panelPublic export
typescript
import { Tabs } from '@happyvertical/smrt-ui';- Import path
@happyvertical/smrt-ui- Props
- 7
- Props described
- 7 of 7
- Bindable state
- 0
- Callback events
- 1
- Verified release
- 0.44.0
Props
NameTypeRequiredDescription
tabsTab[]YesAvailable tabsactivestringYesCurrently active tab idonchange(id: string) => voidNoCalled when tab changessize'sm' | 'md' | 'lg'NoSize variantvariant'primary' | 'secondary'NoVisual variantchildrenSnippetNoTab content slotaria-labelstringNoAccessible label for the tablistBindable state
This component has no bindable public state.
Callback events
onchange(id: string) => void