- Button components
- Alert components
- Testing using svelte-testing-library + Jest
- Storybook
- Rollup, configured to build .js (umd), .min.js (iife), .mjs (es)
- Run
npm install alert-and-button
(oryarn add alert-and-button
)
This is the GitHub repo
for this package.
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.
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.