0.1.1 • Published 7 months ago

@ariakit/solid v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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

Attribution

Browser testing provided by

Contributing

Follow the instructions on the contributing guide.

0.1.0

10 months ago

0.1.1

7 months ago

0.0.1

1 year ago