JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q49532F
  • License MIT

Flat UI Components with SvelteJS

Package Exports

  • svelte-flat

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (svelte-flat) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

svelte-flat

Flat UI Components with SvelteJS

img img


svelte-flat

Installation

$ yarn add svelte-flat

Usage

import { Button } from 'svelte-flat'
import 'svelte-flat/lib/theme-default/button.css'

const button = Button({
  target: document.querySelector('#button'),
  data: {
    content: 'Default Button'
  }
})
button.onclick = function (e) {
  console.log('hello world')
}

Documentation

Documentation

Browser Support

Unknown.

Development

# Build all components
$ yarn 
$ yarn run init
$ yarn run build

License

MIT