@ariakit/solid
v0.1.0
Published
Toolkit for building accessible web apps with Solid
Downloads
14
Readme
Installation
npm:
npm i @ariakit/solid
pnpm:
pnpm add @ariakit/solid
Yarn:
yarn add @ariakit/solid
Usage
import { createSignal } from "solid-js";
import { render } from "solid-js/web";
import { Button, Dialog, DialogHeading } from "@ariakit/solid";
function App() {
const [open, setOpen] = createSignal(false);
return (
<>
<Button onClick={() => setOpen(true)}>Open dialog</Button>
<Dialog open={open()} onClose={() => setOpen(false)}>
<DialogHeading>Ariakit</DialogHeading>
<p>Welcome to Ariakit!</p>
</Dialog>
</>
);
}
render(() => <App />, document.getElementById("root")!);
Core Team
Ariakit Solid maintainers
Attribution
Browser testing provided by
Contributing
Follow the instructions on the contributing guide.