garbles / ariakit

Toolkit for building accessible web apps with React

Home Page:https://reakit.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ariakit

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




This is the Ariakit (v2) branch (What is Ariakit?), which is still in alpha.
If you're looking for Reakit (v1), check out the v1 branch.


Installation

npm:

npm i ariakit

Yarn:

yarn add ariakit

Usage

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

function App() {
  const dialog = useDialogState();
  return (
    <>
      <Button onClick={dialog.toggle}>Open dialog</Button>
      <Dialog state={dialog}>
        <DialogHeading>Welcome</DialogHeading>
        <DialogDescription>Welcome to Reakit!</DialogDescription>
      </Dialog>
    </>
  );
}

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

Contributing

See [v2] Examples and follow the instructions on the contributing guide.

About

Toolkit for building accessible web apps with React

https://reakit.io

License:MIT License


Languages

Language:TypeScript 93.6%Language:JavaScript 4.4%Language:CSS 2.0%Language:Shell 0.0%