Skip to content

Tabs

A tabbed interface rendered with the <Tabs> and <TabItem> components.

The first tab content that can use any other Markdown syntax.

A tabbed interface rendered with the <Tabs> and <TabItem> components and icons.

Terminal window
npm install starlight-theme-galaxy

Here’s an example with JavaScript code blocks:

// Higher-order function example
const createCounter = (initialValue = 0) => {
let count = initialValue;
return {
increment: () => ++count,
decrement: () => --count,
getValue: () => count,
reset: () => { count = initialValue; }
};
};
const counter = createCounter(10);
console.log(counter.getValue()); // 10
counter.increment();
console.log(counter.getValue()); // 11