reakit / reakit
- четверг, 16 мая 2019 г. в 00:17:59
TypeScript
Toolkit for building accessible rich web apps with React
Toolkit for building accessible rich web apps with React.
Explore website »
By donating $5 or more you help in the development of this project. Thank you to all our supporters!
npm:
npm i reakitYarn:
yarn add reakitThanks to @nosebit for the package name on npm.
Looking for
v0? See v0 branch, v0 docs and the migration guide.
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.
This project exists thanks to all the people who contribute.
MIT © Diego Haz