mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 13:43:59 -05:00
Most simple components created
This commit is contained in:
27
lib/component/input/OptionInput.tsx
Normal file
27
lib/component/input/OptionInput.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user