louisette
v0.8.2
Published
Accessible Svelte component primitives
Downloads
13
Maintainers
Readme
Louisette
A collection of headless component primitives for Svelte.
Installation
npm install louisette
Usage
<script>
import { createCollapsible } from 'louisette'
const { triggerAttrs, contentAttrs } = createCollapsible()
</script>
<div>
<button {...$triggerAttrs}>Toggle</button>
<div {...$contentAttrs}>
<p>Content</p>
</div>
</div>
You can check out the documentation for more examples.