"use client"; import { useState } from "react"; import TextInput from "../components/TextInput"; import Checkbox from "../components/Checkbox"; import CheckboxGroup from "../components/CheckboxGroup"; import RadioGroup from "../components/RadioGroup"; export default function ComponentsPreview() { const [defaultInputValue, setDefaultInputValue] = useState(""); const [activeInputValue, setActiveInputValue] = useState(""); const [errorInputValue, setErrorInputValue] = useState(""); const [standardCheckbox, setStandardCheckbox] = useState(false); const [inverseCheckbox, setInverseCheckbox] = useState(false); const [checkboxGroupValues, setCheckboxGroupValues] = useState([]); const [radioValue, setRadioValue] = useState(""); return (

Component Preview

Temporary page for viewing and testing new components

{/* Text Input Section */}

Text Input Component

States

setDefaultInputValue(e.target.value)} /> setActiveInputValue(e.target.value)} /> setErrorInputValue(e.target.value)} error />
{/* Checkbox Section */}

Checkbox Component

Standard Mode

setStandardCheckbox(checked)} />

Inverse Mode

setInverseCheckbox(checked)} />
{/* Checkbox Group Section */}

Checkbox Group Component

Standard Mode

setCheckboxGroupValues(value)} mode="standard" options={[ { value: "option1", label: "Checkbox label" }, { value: "option2", label: "Checkbox label", subtext: "Nunc sed hendrerit consequat.", }, ]} />

Inverse Mode

setCheckboxGroupValues(value)} mode="inverse" options={[ { value: "option3", label: "Checkbox label" }, { value: "option4", label: "Checkbox label", subtext: "Nunc sed hendrerit consequat.", }, ]} />
{/* Radio Group Section */}

Radio Group Component

States

setRadioValue(value)} options={[ { value: "option1", label: "Option 1" }, { value: "option2", label: "Option 2" }, { value: "option3", label: "Option 3" }, ]} />
); }