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} />;
}
InputCheckbox
<InputCheckboxCards
name="name"
title="Title"
options={[
{
name: "Option 1",
value: 1,
},
{
name: "Option 2",
value: 2,
},
{
name: "Option 3",
value: 3,
disabled: true,
},
]}
/>