An open API service indexing awesome lists of open source software.

https://github.com/gift-stack/svelte-alert-and-button-library


https://github.com/gift-stack/svelte-alert-and-button-library

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# 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`](https://github.com/Gift-Stack/Svelte-Alert-And-Button-Library) 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](https://github.com/sveltejs/rollup-plugin-svelte) or
[svelte-loader](https://github.com/sveltejs/svelte-loader) (where
[`resolve.mainFields`](https://webpack.js.org/configuration/resolve/#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](https://storybook.js.org/docs/svelte/).