@ark-ui/solid

中文文档
5.40.0发布于 2026/10/30MITES Module构建来源已验证近 30 天下载 33.5万

A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.

原始使用文档
文档目录8 节
  1. Supported Frameworks
  2. Available Components
  3. Installation
  4. Usage
  5. Documentation
  6. Roadmap
  7. Contribution
  8. License

License GitHub stars Downloads

Welcome to Ark UI

Ark UI is a headless, open-source UI library with over 45+ components designed for building reusable, scalable Design Systems. It supports a wide range of JavaScript frameworks, offering dedciated packages for each supported framework.

Supported Frameworks

Ark UI is available for the following JavaScript frameworks:

  • React: @ark-ui/react
  • Solid: @ark-ui/solid
  • Vue: @ark-ui/vue
  • Svelte: @ark-ui/svelte

Available Components

Installation

To install @ark-ui/solid, run the following command:

npm install @ark-ui/solid

or with yarn:

yarn add @ark-ui/solid

Usage

To use a component from @ark-ui/solid, import it and include it in your application:

import { Slider } from '@ark-ui/solid'
import { createSignal } from 'solid-js'

export const MySlider = () => {
  const [value, setValue] = createSignal([30])

  return (
    <Slider.Root min={-50} max={50} value={value()} onValueChange={(e) => setValue(e.value)}>
      <Slider.Label>Label</Slider.Label>
      <Slider.ValueText>{value}</Slider.ValueText>
      <Slider.Control>
        <Slider.Track>
          <Slider.Range />
        </Slider.Track>
        <Slider.Thumb index={0} />
      </Slider.Control>
    </Slider.Root>
  )
}

Documentation

For more detailed documentation and examples, please visit the official documentation.

Roadmap

You can request, vote for, and check upcoming features on our roadmap.

Contribution

We welcome contributions to Ark UI. Please read our contributing guidelines for more information on how to contribute.

License

This project is licensed under the terms of the MIT license.

版本与发布记录

@ark-ui/solid 共发布 579 个版本,首次发布于 2022/11/06;过去 12 个月发布了 24 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
5.40.0latest2026/10/309 天前
6.0.0-next.0next2026/10/061 个月前
5.39.32026/10/061 个月前
5.39.22026/09/141 个月前
5.39.12026/08/282 个月前
5.39.02026/08/222 个月前

其他发布通道:beta → 1.0.0-beta.3,rc → 3.0.0-7,next → 6.0.0-next.0。

关于 @ark-ui/solid 的常见问题

@ark-ui/solid 是什么?

A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.

如何安装 @ark-ui/solid?

在项目目录运行 npm install @ark-ui/solid,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:solid-js(>=1.6.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@ark-ui/solid 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/ark-ui__solid 是否存在。

@ark-ui/solid 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@ark-ui/solid 可以商用吗?

@ark-ui/solid 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@ark-ui/solid 的下载量有多少?

根据 npm 官方下载统计,@ark-ui/solid 在 2026/10/07 – 2026/11/05 这 30 天内被下载 334,849 次,日均约 11,162 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@ark-ui/solid 还在维护吗?

最新版本 5.40.0 发布于 2026/10/30(9 天前);至今共发布 579 个版本,其中过去 12 个月发布了 24 个;首次发布于 2022/11/06。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。