Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

svelte-ui

transpiling65MIT0.1.9

Flat UI Components with SvelteJS

svelte, flat-ui, components

readme

svelte-flat-ui

img img

Flat UI Independent JS Components.
Each one can be build separately (using Svelte framework).

svelte-flat


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