0.1.9 • Published 7 years ago
svelte-ui v0.1.9
svelte-flat-ui
Flat UI Independent JS Components.
Each one can be build separately (using Svelte framework).
Installation
All controls
yarn add svelte-ui
Or just only Button
yarn add svelte-ui-button svelte-ui-theme
Usage
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
# Build all components
yarn
yarn run init
yarn run build