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.


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

npm i react react-dom

Then, install Ariakit:

npm i @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 "./style.css";
export default function Example() {
return <Button className="button">Button</Button>;


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