Svelte framework adapter for the KoliBri accessible web component library (@public-ui).
npm install @public-ui/svelte





!contributors
Provide an adapter for Svelte to use the KoliBri components.
You can install the adapter with npm, pnpm or yarn:
``bash`
npm i @public-ui/svelte
pnpm i @public-ui/svelte
yarn add @public-ui/svelte
First, initialize KoliBri with a theme and register the components:
`ts
import { DEFAULT } from '@public-ui/theme-default';
import { defineCustomElements } from '@public-ui/components/loader';
import { register } from '@public-ui/components';
await register(DEFAULT, defineCustomElements);
`
Then, you can import any component from @public-ui/svelte and render it inside a Svelte component:
`svelte
``
Find available design tokens in the default theme README.