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

    2.0.0-alpha.18 • Public • Published

    Ariakit

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


    NPM version NPM downloads Build Status
    Sponsors Backers Follow Ariakit on Twitter

    Installation

    npm:

    npm i ariakit
    

    Yarn:

    yarn add ariakit
    

    Usage

    import { createRoot } from "react-dom";
    import {
      Dialog,
      DialogDisclosure,
      DialogHeading,
      DialogDescription,
      useDialogState,
    } from "ariakit";
    
    function App() {
      const dialog = useDialogState();
      return (
        <>
          <DialogDisclosure state={dialog}>Open dialog</DialogDisclosure>
          <Dialog state={dialog}>
            <DialogHeading>Welcome</DialogHeading>
            <DialogDescription>Welcome to Reakit!</DialogDescription>
          </Dialog>
        </>
      );
    }
    
    createRoot(document.getElementById("root")).render(<App />);

    Install

    npm i ariakit

    Homepage

    reakit.io

    DownloadsWeekly Downloads

    269

    Version

    2.0.0-alpha.18

    License

    MIT

    Unpacked Size

    1.91 MB

    Total Files

    898

    Last publish

    Collaborators

    • diegohaz