Try the tabs
Focus a tab and use the arrow keys to switch views.
Your workspace is ready.
No new activity today.
The reference implementation for Lumen UI, with the complete component catalog, automatic component CSS, and controllers that load on demand.
The free MIT starter includes landing page, ecommerce, dashboard, and portfolio templates. Explore seven Lumen themes in light and dark mode, then edit the same source in your own project.
V5 Astro components import their own CSS. Install @santi020k/lumen separately as a development dependency for CLI commands. Mount UIPrimitives once in your root layout only if you use interactive primitives; do not add it beside every component.
pnpm
pnpm add @santi020k/lumen-astronpm
npm install @santi020k/lumen-astroyarn
yarn add @santi020k/lumen-astro---
import { Button, Card, Input, Label } from '@santi020k/lumen-astro'
---
<Card>
<Label for="email">Email</Label>
<Input id="email" type="email" placeholder="you@example.com" />
<Button>Subscribe</Button>
</Card>Interactive components like Dialogs, Popovers, Tabs, and Selects rely on a lightweight, vanilla JavaScript runtime. Mount <UIPrimitives /> once in your Astro root layout to wire up keyboard navigation, focus trapping, and disclosure state for matching components. In v5, controllers load on demand and initialization is asynchronous. Await window.LumenInitUiPrimitives(scope) for application-created markup;ui:ready follows completion and ui:runtime-error reports failures.
---
import { Button, Card } from '@santi020k/lumen-astro'
import UIPrimitives from '@santi020k/lumen-astro/runtime'
---
<UIPrimitives />
<Card><Button>Save</Button></Card>Focus a tab and use the arrow keys to switch views.
Your workspace is ready.
No new activity today.
Open help, press Escape to dismiss it, then check where focus returns.
Dialog API and examplesClick the question or focus it and press Enter. This also works without JavaScript.
Native details can open and close without the runtime.
Copy a demo · Astro snippets assume styles and UIPrimitives are already mounted in your root layout.
---
import { Tabs, TabsList, TabsPanel, TabsTrigger } from '@santi020k/lumen-astro'
---
<Tabs initialValue="overview">
<TabsList aria-label="Workspace view">
<TabsTrigger value="overview">Overview</TabsTrigger>
<TabsTrigger value="activity">Activity</TabsTrigger>
</TabsList>
<TabsPanel value="overview">
<p>Your workspace is ready.</p>
</TabsPanel>
<TabsPanel value="activity">
<p>No new activity today.</p>
</TabsPanel>
</Tabs>---
import { Button, Dialog } from '@santi020k/lumen-astro'
---
<Button data-ui-dialog-trigger="workspace-help">Open workspace help</Button>
<Dialog id="workspace-help" aria-labelledby="workspace-help-title">
<h2 id="workspace-help-title">Workspace help</h2>
<p>Keep your team settings in one place.</p>
<footer>
<Button data-ui-dialog-close>Close help</Button>
</footer>
</Dialog>---
import { Accordion } from '@santi020k/lumen-astro'
---
<Accordion>
<details>
<summary>Does this need JavaScript?</summary>
<p>Native details can open and close without the runtime.</p>
</details>
</Accordion>