Package Exports
- svelte-hamburger
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (svelte-hamburger) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Svelte Hamburger
Animated hamburger icon
Usage
npm i svelte-hamburger
<script>
import Hamburger from 'svelte-hamburger';
</script>
<Hamburger bind:open />
See the API Docs for a full overview of props and options.
Properties
Property | Type | Default | Description |
---|---|---|---|
open |
boolean |
false |
Whether hamburger is open |
width |
number |
32 |
Width of the icon |
height |
number |
24 |
Height of the icon |
stroke |
number |
2 |
Thickness of the lines |