Attractions

用于 Svelte 的超酷用户界面套件。「A pretty cool UI kit for Svelte」

Github stars Tracking Chart

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.

Main metrics

Overview
Name With Ownerillright/attractions
Primary LanguageSvelte
Program languageJavaScript (Language Count: 5)
Platform
License:MIT License
所有者活动
Created At2020-04-17 20:48:30
Pushed At2024-11-22 13:45:09
Last Commit At
Release Count25
Last Release Namev3.7.2 (Posted on )
First Release Namev1.0.0-alpha (Posted on )
用户参与
Stargazers Count1k
Watchers Count10
Fork Count35
Commits Count1k
Has Issues Enabled
Issues Count101
Issue Open Count0
Pull Requests Count254
Pull Requests Open Count0
Pull Requests Close Count29
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private