mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 13:43:59 -05:00
28 lines
417 B
TypeScript
28 lines
417 B
TypeScript
import type { OptionInputProps } from "$/types/Input";
|
|
import { ListboxOption } from "@headlessui/react";
|
|
import clsx from "clsx";
|
|
|
|
|
|
export default function OptionInput(props: OptionInputProps){
|
|
const {
|
|
id,
|
|
className,
|
|
value,
|
|
children
|
|
} = props;
|
|
|
|
|
|
return (
|
|
<ListboxOption
|
|
id={id}
|
|
className={clsx(
|
|
"cursor-pointer",
|
|
className
|
|
)}
|
|
value={value}
|
|
>
|
|
{children}
|
|
</ListboxOption>
|
|
);
|
|
}
|