Playground
Every shipped example, rendered live in the browser.
The playground lists the example SFCs bundled with the docs site and runs the selected one for real — no static snapshots.
How it works
- Library — the select in the card header switches between
Aria,UI,AdminandChart. Examples currently exist forUIandChart; the remaining libraries show an empty state until their examples land. - Tabs — one tab per example folder (
apps/docs/src/examples/<library>/<component>/index.vue). - Viewport — every preview carries a screen-resolution switcher.
Desktopis the fluid default;MobileandTabletpin the frame to a device width (390 px / 768 px) so responsive behaviour can be inspected without resizing the browser;Fullscreenlifts the preview into a viewport-filling layer, left withEscor the exit button. Each example keeps its own resolution, and the frame publishes it throughprovideViewportContext, so components that resolve a mobile mode themselves (SLayout,SAppShell) switch with the switcher instead of the browser window. - Deep links — the active tab is mirrored to the
?tab=query parameter, so a specific example can be shared by URL.
Where examples come from
Examples are plain SFCs under apps/docs/src/examples/. The same files back the ## Demos section of every component page, so a change in the playground is a change in the documentation.