This package has been deprecated

Author message:

The ariakit package has been renamed to @ariakit/react. Visit https://ariakit.org for more info.

ariakit
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-next.44 • Public • Published

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.

Package Sidebar

Install

npm i ariakit

Homepage

ariakit.org

Weekly Downloads

22,274

Version

2.0.0-next.44

License

MIT

Unpacked Size

1.53 MB

Total Files

706

Last publish

Collaborators

  • ariakit-bot
  • diegohaz