Tabs
Tabs group alternatives. Give related tab groups the same syncKey and choosing a tab in one switches the others, so a reader picks their package manager once.
Source
Section titled “Source”import { Tabs, TabItem } from '@astrojs/starlight/components';
<Tabs syncKey="pkg"> <TabItem label="npm"> ```bash npm install ``` </TabItem> <TabItem label="pnpm"> ```bash pnpm install ``` </TabItem></Tabs>Result
Section titled “Result”npm installpnpm installA second group with the same syncKey follows the first:
npm run buildpnpm run buildTabs with prose
Section titled “Tabs with prose”Tabs can hold any content, not just code.
No sign-in. Your data lives in .knetik/local/. Answers only on this machine.
Sign-in with an allowlist. Data lives in a SQLite file on a persistent volume (D1 on Cloudflare). On Node, run exactly one instance.