27 lines
437 B
TypeScript
27 lines
437 B
TypeScript
import type { OptionInputProps } from "$/types/InputTypes";
|
|
import { ListboxOption } from "@headlessui/react";
|
|
import clsx from "clsx";
|
|
|
|
|
|
export default function OptionInput({
|
|
id,
|
|
className,
|
|
value,
|
|
disabled,
|
|
children
|
|
}: Readonly<OptionInputProps>){
|
|
return (
|
|
<ListboxOption
|
|
id={id}
|
|
className={clsx(
|
|
"cursor-pointer",
|
|
className
|
|
)}
|
|
value={value}
|
|
disabled={disabled}
|
|
>
|
|
{children}
|
|
</ListboxOption>
|
|
);
|
|
}
|