JSPM

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

Flat UI Components with Svelte

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

A Svelte Flat UI Toolkit for Web.

Svelte Flat

Installation

npm i svelte-flat --save

Fully import

import Flat from 'svelte-flat'
import 'svelte-flat/lib/theme-default/index.css'

Single import

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

On demand

Install babel-plugin-svelteflat

npm i babel-plugin-svelteflat -D

Config files

edit .babelrc.

{
  "plugins": [
    ["svelteflat", [
      {
        "libraryName": "svelte-flat",
        "styleLibraryName": "theme-default"
      }
    ]]
  ]
}

Then, if you need Button, you can import it without style,

import { Button } from 'svelte-flat'

Forked version

Here is a forked version which named svelte-flat-ui.