import { Checkbox, CheckboxCheckedState, Label } from "@medusajs/ui" import { useState } from "react" export default function CheckboxControlled() { const [checked, setChecked] = useState(false) const handleToggle = () => { switch (checked) { case "indeterminate": setChecked(true) return case true: setChecked(false) return default: setChecked("indeterminate") } } return (
The following checkbox will move from unchecked, to indeterminate, and finally checked each time you click it
) }