SaasRock Logo

Checkbox Input

InputCheckbox

<InputCheckbox name="name" title="title" />

InputCheckbox - with State

import { useState } from "react";
import InputCheckbox from "~/components/ui/input/InputCheckbox";

export default function PreviewInputCheckboxWithState() {
  const [value, setValue] = useState(true);
  return <InputCheckbox name="name" title="Title" value={value} setValue={setValue} />;
}