Spaces:
Sleeping
Sleeping
File size: 774 Bytes
d97b8f9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | import React from 'react';
import { Dropdown, DropdownOption } from "@/components/ui/dropdown";
interface UpwardDropdownProps {
options: DropdownOption[];
value?: string;
onValueChange?: (value: string) => void;
placeholder?: string;
className?: string;
disabled?: boolean;
side?: 'top' | 'bottom';
}
export function UpwardDropdown({
options,
value,
onValueChange,
placeholder,
className,
disabled,
side = 'top', // Default to top for backward compatibility
}: UpwardDropdownProps) {
return (
<Dropdown
options={options}
value={value}
onValueChange={onValueChange}
placeholder={placeholder}
className={className}
disabled={disabled}
side={side}
/>
);
} |