0.5.2 • Published 7 months ago

@rotext/solid-components v0.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@rotext/solid-components

最初 fork 自 dicexp 下的 packages/solid-components,基于此清除了原项目相关的代码,并调整了部分配置。往前可以追溯至 solid-lib-starter。(详见 dicexp 对应位置的记录。)

本包将 solid-jssolid-iconssolid-element 作为 peer 依赖。

额外准备工作

!IMPORTANT

本章节所述内容为让本包正常工作的必须步骤。

1. 让 tailwind 扫描本包的代码

在使用本包的项目的 tailwind 配置文件(假设为 tailwind.config.ts)中添加 content 项:

  content: [
    …,
+   "./node_modules/@rotext/solid-components/src/**/*.{js,ts,jsx,tsx}",
  ],

2. 在调用 registerCustomElementFor* 时,提供包含 tailwind 生成样式的 StyleProvider

通过第二个参数(opts)的 baseStyleProviders 字段提供。

StyleProvider 来自 @rolludejo/internal-web-shared

0.5.0

8 months ago

0.5.2

7 months ago

0.5.1

7 months ago

0.4.0

1 year ago

0.3.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago