0.1.9 • Published 7 years ago

svelte-ui v0.1.9

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

svelte-flat-ui

img img

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

License

MIT