Toolkit for building accessible rich web apps with React

Reakit

Toolkit for building accessible rich web apps with React.
Explore website »

Installation

npm:

npm i reakit

Yarn:

yarn add reakit

Thanks to @nosebit for the package name on npm.

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 {...dialog} aria-label="Welcome">
        Welcome to Reakit!
      </Dialog>
    </div>
  );
}

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

Play with this on CodeSandbox and read the documentation to learn more.

Download Details:

Author: reakit

Live Demo: https://reakit.io/

GitHub: https://github.com/reakit/reakit

#reactjs #javascript #react

Toolkit for building accessible rich web apps with React
4.80 GEEK