JSPM

  • Created
  • Published
  • Downloads 326392
  • Score
    100M100P100Q165285F
  • License MIT

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ariakit/react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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 />);

    Core Team

    Attribution

    Browser testing provided by

    Contributing

    Follow the instructions on the contributing guide.