Tabs
Switches between peer views of the same object, such as overview, activity and settings. It is not navigation, so it never changes the page.
import from ~/components/ui/tabs
Default
Scope, budget and the two people carrying it. The summary a stranger reads first.
Tabs / TabsList / TabsTrigger / TabsContent
Three peer views of one endeavor. The trigger value and the content value are the join, so order in the markup is free.
With icons
What we agreed to build, in one page.
icon + label
The trigger sizes any svg child itself. Keep the text label: an icon-only tab is a guessing game.
Keyboard and disabled state
Still ours. Nobody outside the studio sees it.
roving focus
Tab moves focus into the list, then arrow keys move between triggers and Home / End jump to the ends. A disabled trigger is skipped.
Rules
Do
Don't