npm install svelte-uisvelte-flat-ui
--------------
!img
!img
> Flat UI Independent JS Components.
> Each one can be build separately (using Svelte framework).
---
bash
yarn add svelte-ui
`
Or just only Button
`bash
yarn add svelte-ui-button svelte-ui-theme
`
Usage
`javascript
import 'svelte-ui-button'
import 'svelte-ui-theme/button.css'const button = Button({
target: document.querySelector('#button'),
data: {
content: 'Default Button'
}
})
button.onclick = function (e) {
console.log('hello world')
}
`Documentation
Development
`bash
Build all components
yarn
yarn run init
yarn run build
``