Build a component
Keep runtime files and unit tests in packages/lab-ui/src/lib/components/<Folder>.
Use Svelte 5 runes, typed props, keyboard-accessible interactions and lab-* CSS classes.
Read shared theme values from --lab-* custom properties.
Add an example
Put <Folder>.demo.svelte and <Folder>.md in apps/document-site/src/lib/examples/<Folder>.
Import public components from @nomimono/lab-ui or @nomimono/lab-ui/clean in the demo.
The documentation site discovers each example automatically.
Update exports
Run from the repository root:
bun run --filter=@nomimono/lab-ui index
bun run check
bun run lint
bun run test
See packages/lab-ui/CONTRIBUTING.md for the front matter format and component conventions.