svelt-component-library

This library includes:

  • Button components
  • Alert components
  • Testing using svelte-testing-library + Jest
  • Storybook
  • Rollup, configured to build .js (umd), .min.js (iife), .mjs (es)

Installation

  • Run npm install alert-and-button (or yarn add alert-and-button)

This is the GitHub repo for this package.

Consuming components

The package.json has a "svelte" field pointing to src/index.js, which allows Svelte apps to import the source code directly, if they are using a bundler plugin like rollup-plugin-svelte or svelte-loader (where resolve.mainFields in your webpack config includes "svelte"). This is recommended.

Description

This application was built with Svelte and storybook for checking out the amazing components. You can check out more on [Svelte] (https://https://svelte.dev/) and storybook.

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes