Update input components
This commit is contained in:
@@ -4,28 +4,28 @@ import clsx from "clsx";
|
||||
import { BsChevronDown } from "react-icons/bs";
|
||||
|
||||
|
||||
export default function SelectInput(props: SelectInputProps){
|
||||
const {
|
||||
label,
|
||||
value,
|
||||
onChange,
|
||||
children
|
||||
} = props;
|
||||
|
||||
|
||||
export default function SelectInput({
|
||||
placeholder,
|
||||
value,
|
||||
onChange,
|
||||
disabled,
|
||||
children
|
||||
}: Readonly<SelectInputProps>){
|
||||
return (
|
||||
<Listbox
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
disabled={disabled}
|
||||
>
|
||||
<ListboxButton
|
||||
className={clsx(
|
||||
"group relative flex flex-row items-center justify-between w-full",
|
||||
"border-2 px-2 py-1 rounded-lg"
|
||||
"border-2 px-2 py-1 rounded-lg",
|
||||
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2"
|
||||
//"not-data-open:rounded-lg data-open:rounded-t-lg"
|
||||
)}
|
||||
>
|
||||
<span>{label}</span>
|
||||
<span>{placeholder}</span>
|
||||
<span className="block group-data-open:rotate-180 transition-transform duration-250"><BsChevronDown size={22}/></span>
|
||||
</ListboxButton>
|
||||
<ListboxOptions
|
||||
|
||||
Reference in New Issue
Block a user