Skip to content

🔪 🔶 Accessible component primitives for Svelte (WIP)

License

Notifications You must be signed in to change notification settings

ubermanu/louisette

Repository files navigation

Louisette

npm GitHub Workflow Status

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.