57
GitHub - reakit/reakit: Toolkit for building accessible rich web apps with React
source link: https://github.com/reakit/reakit
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
Reakit
Toolkit for building accessible rich web apps with React.
Explore website »
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
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK