attractions
TypeScript icon, indicating that this package has built-in type declarations

3.7.2 • Public • Published

Logo

Attractions

Inactively Maintained

GitHub Workflow Status npm npm bundle size npm bundle zipped size

Open in Visual Studio Code

A pretty cool UI kit for Svelte.

Refer to the main documentation: https://illright.github.io/attractions

Installation

Step 1. Install the library with your favorite package manager:

npm install --save-dev attractions
# -- or --
yarn add --dev attractions
# -- or --
pnpm add --save-dev attractions

Step 2. Install svelte-preprocess, Dart Sass and PostCSS:

npm install --save-dev svelte-preprocess sass postcss
# -- or --
yarn add --dev svelte-preprocess sass postcss
# -- or --
pnpm add --save-dev svelte-preprocess sass postcss

Step 3. Add svelte-preprocess to your preprocessor chain (as shown here):

// rollup.config.js
import sveltePreprocess from 'svelte-preprocess';

export default {
  // ...,
  plugins: [
    svelte({
      preprocess: sveltePreprocess(),
    }),
  ],
};

Step 4. Import the desired components as named imports and use wherever you like!

<script>
  import { Button } from 'attractions';
</script>

<Button>click me</Button>

For more information on how to customize/theme your installation, see the docs.


Alternatively, the library can be used from a CDN, such as unpkg, and then the components will be registered as custom elements. This is especially useful for quick prototypes that do not need all the features provided.

Example usage:

<head>
  <script src="https://unpkg.com/attractions"></script>
</head>
<body>
  <a-button filled="filled">My button</a-button>
</body>

For more details, check out the docs.

License

This project is MIT licensed.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.7.242latest

Version History

VersionDownloads (Last 7 Days)Published
3.7.242
3.7.00
3.6.01
3.5.20
3.5.11
3.5.00
3.4.01
3.3.015
3.2.10
3.2.00
3.1.00
3.0.00
2.3.13
2.3.00
2.2.40
2.2.33
2.2.10
2.2.00
2.1.12
2.1.00
2.0.3-alpha0
2.0.1-alpha0
2.0.0-alpha0
1.0.0-alpha0

Package Sidebar

Install

npm i attractions

Weekly Downloads

68

Version

3.7.2

License

MIT

Unpacked Size

1.05 MB

Total Files

256

Last publish

Collaborators

  • aabounegm
  • illright