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 />
See the API Docs for a full overview of props and options.
Svelte-preprocess
svelte-hamburger
is written in Typescript, and requires Svelte's preprocessing to be enabled. If you're using Sapper this comes enabled by default.
To enable preprocessing, install svelte-preprocess
and include it in the svelte config in your rollup.config.js
or webpack.config.js
npm i svelte-preprocess
import autoPreprocess from 'svelte-preprocess';
svelte({
preprocess: autoPreprocess()
});
See the svelte-preprocess docs for more.
Properties
Property | Description |
---|