mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
Update Dropdown.tsx
This commit is contained in:
parent
4846ec53b2
commit
459223a030
1 changed files with 43 additions and 41 deletions
|
@ -15,6 +15,7 @@ interface DropdownProps {
|
|||
}
|
||||
|
||||
export function Dropdown(props: DropdownProps) {
|
||||
return (
|
||||
<div className="relative my-4 max-w-[18rem]">
|
||||
<Listbox value={props.selectedItem} onChange={props.setSelectedItem}>
|
||||
{({ open }) => (
|
||||
|
@ -55,5 +56,6 @@ export function Dropdown(props: DropdownProps) {
|
|||
</>
|
||||
)}
|
||||
</Listbox>
|
||||
</div>;
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue