A set Svelte components.
Quick Start • Installation and Usage
Installation and Usage
Install
npm i -D @deimimi/strawberry
Usage
<!--App.svelte-->
<script>
import { Button } from "@deimimi/strawberry";
</script>
<Button color="primary" on:click="{() => alert('strawberry')}">
Click me!
</Button>
// rollup.config.js
import { preprocessConfig } from "@deimimi/strawberry/config";
...
plugins: [
...
svelte({
...
preprocess: preprocessConfig,
...
}),
...
]
...