Toolkit for building accessible web apps with React.
Explore website »
npm:
npm i @ariakit/react
pnpm:
pnpm add @ariakit/react
Yarn:
yarn add @ariakit/react
import { createRoot } from "react-dom/client";
import * as Ariakit from "@ariakit/react";
function App() {
const dialog = Ariakit.useDialogStore();
return (
<>
<Ariakit.Button onClick={dialog.toggle}>Open dialog</Ariakit.Button>
<Ariakit.Dialog store={dialog}>
<Ariakit.DialogHeading>Welcome</Ariakit.DialogHeading>
<Ariakit.DialogDescription>
Welcome to Reakit!
</Ariakit.DialogDescription>
</Ariakit.Dialog>
</>
);
}
createRoot(document.getElementById("root")).render(<App />);
Follow the instructions on the contributing guide.