Ariakit

使用 React 构建无障碍 web 应用程序的工具包。「Toolkit for building accessible web apps with React」

Github星跟蹤圖

Installation

npm:

npm i @ariakit/react

pnpm:

pnpm add @ariakit/react

Yarn:

yarn add @ariakit/react

Usage

import { useState } from "react";
import { createRoot } from "react-dom/client";
import { Button, Dialog, DialogHeading } from "@ariakit/react";

function App() {
  const [open, setOpen] = useState(false);
  return (
    <>
      <Button onClick={() => setOpen(true)}>Open dialog</Button>
      <Dialog open={open} onClose={() => setOpen(false)}>
        <DialogHeading>Ariakit</DialogHeading>
        <p>Welcome to Ariakit!</p>
      </Dialog>
    </>
  );
}

createRoot(document.getElementById("root")).render(<App />);

Attribution

Browser testing provided by

Contributing

Follow the instructions on the contributing guide.

主要指標

概覽
名稱與所有者ariakit/ariakit
主編程語言TypeScript
編程語言JavaScript (語言數: 5)
平台
許可證MIT License
所有者活动
創建於2017-09-19 22:00:42
推送於2025-06-10 20:38:00
最后一次提交
發布數811
最新版本名稱@ariakit/tailwind@0.1.7 (發布於 2025-05-25 17:23:16)
第一版名稱v0.0.2 (發布於 2018-01-22 21:10:10)
用户参与
星數8.1k
關注者數55
派生數389
提交數5.1k
已啟用問題?
問題數675
打開的問題數96
拉請求數3382
打開的拉請求數22
關閉的拉請求數298
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?