Skip to content

Toolkit for building accessible web apps with React

License

Notifications You must be signed in to change notification settings

georgekaran/ariakit

 
 

Repository files navigation

Ariakit

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



Installation

npm:

npm i @ariakit/react

pnpm:

pnpm add @ariakit/react

Yarn:

yarn add @ariakit/react

Usage

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

function App() {
  const [open, setOpen] = useState(false);
  return (
    <>
      <Button onClick={() => setOpen(true)}>Open dialog</Button>
      <Dialog open={open} onClose={() => setOpen(false)}>
        <DialogHeading>Ariakit</DialogHeading>
        <p>Welcome to Ariakit!</p>
      </Dialog>
    </>
  );
}

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

Attribution

Browser testing provided by

Contributing

Follow the instructions on the contributing guide.

About

Toolkit for building accessible web apps with React

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 95.7%
  • JavaScript 4.2%
  • CSS 0.1%