Flat UI Independent JS Components.
Each one can be built separately (using Svelte framework).
All controls
yarn add svelte-ui
Or just only Button
yarn add svelte-ui-button svelte-ui-theme
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')
}
# Build all components
yarn
yarn build