@unofficialbox/box-open-elements-svelte
v0.19.0
Published
Typed Svelte adapters for box-open-elements Web Components.
Maintainers
Readme
@unofficialbox/box-open-elements-svelte
Typed Svelte 5 wrappers for box-open-elements, including explicit structured
property sync, callback props for custom events, bindable element refs, and a
selection-controller readable store.
npm install @unofficialbox/box-open-elements @unofficialbox/box-open-elements-svelte svelte<script lang="ts">
import { Select, TextField } from "@unofficialbox/box-open-elements-svelte";
const options = [{ label: "Draft", value: "draft" }];
</script>
<TextField value="Apollo" onValueChanged={(event) => console.log(event.detail.value)} />
<Select {options} />createExplorerSelectionStore(controller) exposes the shared selection
controller as a standard readable store. Supported as of 0.7.0:
the first public lockstep adapter release, verified by a clean registry install.
