This site is under construction Subscribe to updates


Using the useCheckboxState hook to control the state of the Checkbox component.

import { Checkbox, useCheckboxState } from "ariakit/checkbox";
import "./style.css";

export default function Example() {
  const checked = useCheckboxState({ defaultValue: true });
  return (
    <label className="label">
      <Checkbox className="checkbox" state={checked} /> I have read and agree to
      the terms and conditions