Attractions

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

Github星跟踪图

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.

主要指标

概览
名称与所有者illright/attractions
主编程语言Svelte
编程语言JavaScript (语言数: 5)
平台
许可证MIT License
所有者活动
创建于2020-04-17 20:48:30
推送于2024-11-22 13:45:09
最后一次提交
发布数25
最新版本名称v3.7.2 (发布于 )
第一版名称v1.0.0-alpha (发布于 )
用户参与
星数1k
关注者数10
派生数35
提交数1k
已启用问题?
问题数101
打开的问题数0
拉请求数254
打开的拉请求数0
关闭的拉请求数29
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?