Reakit - 一个使用React构建可访问的富Web应用程序的工具包
Reakit - 一个使用React构建可访问的富Web应用程序的工具包
React UI框架
共4330Star
详细介绍
Reakit
Toolkit for building accessible rich web apps with React.
Explore website »
![Reakit thumbnail](https://user-images.githubusercontent.com/3068563/57511686-36d9e080-72e0-11e9-912b-8b67ddd135e2.png)
Supporters
By donating $5 or more you help in the development of this project. Thank you to all our supporters!
Installation
npm:
npm i reakit
Yarn:
yarn add reakit
Thanks to @nosebit for the package name on npm.
Looking for
v0
? See v0 branch, v0 docs and the migration guide.
Usage
import React from "react";
import ReactDOM from "react-dom";
import { useDialogState, Dialog, DialogDisclosure } from "reakit";
function App() {
const dialog = useDialogState();
return (
<div>
<DialogDisclosure {...dialog}>Open dialog</DialogDisclosure>
<Dialog aria-label="Welcome" {...dialog}>
Welcome to Reakit!
</Dialog>
</div>
);
}
ReactDOM.render(<App />, document.getElementById("root"));
Play with this on CodeSandbox and read the documentation to learn more.
Contributors
This project exists thanks to all the people who contribute.
Logo by Leonardo Elias.
License
MIT © Diego Haz
-
0 Star
-
351 Star
-
6710 Star
-
2826 Star
-
239 Star
-
8836 Star