Tabs and Tab when multiple variants of the same content should share one footprint.1npm install @holocron.so/vite react react-dom vite
Tabs supports defaultTabIndex, sync, and nested Tab children.Tab supports title, value, and icon.1234<Tabs defaultTabIndex={1}> <Tab title='First'>...</Tab> <Tab title='Second'>Opens by default.</Tab> </Tabs>
sync is true, selecting a tab publishes its title. Other synced
<Tabs> on the site that include the same title switch to it. The choice is
stored in localStorage so it survives navigation.1234<Tabs sync> <Tab title='TypeScript'>...</Tab> <Tab title='Python'>...</Tab> </Tabs>
sync by default, so picking
TypeScript on one endpoint keeps TypeScript on the next. Use sync={false} to
opt out of a single group.defaultTabIndex; the
stored title applies after the client hydrates.