Getting started

Ariakit is an open source library that provides lower-level React components and hooks for building accessible web apps, design systems, and component libraries.


  1. 1

    First, make sure you have react and react-dom installed. Ariakit works with React v17 and above.

  2. 2

    Then, install Ariakit using your package manager of choice:

    npm install @ariakit/react
    yarn add @ariakit/react
    pnpm add @ariakit/react


Ariakit exports a set of unstyled React components and hooks that you can use to build accessible web apps. For example, you can use the Button component to create a button:

import { Button } from "@ariakit/react";
import "./button.css";
export default function Example() {
return (
<Button className="focusable clickable button button-default">


You can also use Ariakit directly in the browser via a CDN. This method is only for development purposes and is not recommended for production.

<!doctype html>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<div id="root"></div>
<!-- Babel -->
<script src=""></script>
<!-- Usage -->
<script type="text/babel" data-type="module">
import * as React from "";
import { createRoot } from "";
import { Button } from "";
function App() {
return <Button>Button</Button>;
createRoot(document.getElementById("root")).render(<App />);

Next steps

Continue reading our Guide to learn more about Ariakit:

Check out our Components, Examples, and API Reference pages for more information.

Stay tuned

Join 1,000+ subscribers and receive monthly tips & updates on new Ariakit content.

No spam. Unsubscribe anytime. Read latest issue