@thinkbuff/figma-react
Version:
A Figma React UI components for creating plugins and widgets
25 lines (24 loc) • 2.36 kB
TypeScript
import * as SelectPrimitive from '@radix-ui/react-select';
declare const SelectRoot: import('react').FC<SelectPrimitive.SelectProps>;
declare const SelectGroup: import('react').ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & import('react').RefAttributes<HTMLDivElement>>;
declare const SelectValue: import('react').ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & import('react').RefAttributes<HTMLSpanElement>>;
declare const SelectArrow: import('react').ForwardRefExoticComponent<SelectPrimitive.SelectArrowProps & import('react').RefAttributes<SVGSVGElement>>;
interface SelectTriggerProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> {
placeholder?: SelectPrimitive.SelectValueProps['placeholder'];
}
declare const SelectTrigger: import('react').ForwardRefExoticComponent<SelectTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
interface SelectContentProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content> {
container?: SelectPrimitive.SelectPortalProps['container'];
withArrow?: boolean;
}
/**
* Displays a list of options for the user to pick from—triggered by a button.
*
* - [Docs](https://www.radix-ui.com/docs/primitives/components/select)
* - [API Reference](https://www.radix-ui.com/primitives/docs/components/select#api-reference)
*/
declare const SelectContent: import('react').ForwardRefExoticComponent<SelectContentProps & import('react').RefAttributes<HTMLDivElement>>;
declare const SelectLabel: import('react').ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
declare const SelectItem: import('react').ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
declare const SelectSeparator: import('react').ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
export { SelectRoot as Root, SelectTrigger as Trigger, SelectValue as Value, SelectContent as Content, SelectGroup as Group, SelectLabel as Label, SelectItem as Item, SelectSeparator as Separator, SelectArrow as Arrow, };