UNPKG

@gluestack-ui/select

Version:

A universal headless select component for React Native, Next.js & React

21 lines (20 loc) 1.94 kB
import type { ISelectComponentType } from './types'; export declare function createSelect<SelectProps, SelectTriggerProps, SelectInputProps, SelectIconProps, SelectPortalProps, SelectBackdropProps, SelectContentProps, SelectDragIndicatorProps, SelectDragIndicatorWrapperProps, SelectItemProps, SelectItemTextProps, SelectScrollViewProps, SelectVirtualizedListProps, SelectFlatListProps, SelectSectionListProps, SelectSectionHeaderTextProps>({ Root, Trigger, Input, Icon, }: { Root: React.ComponentType<SelectProps>; Trigger: React.ComponentType<SelectTriggerProps>; Input: React.ComponentType<SelectInputProps>; Icon: React.ComponentType<SelectIconProps>; }, { Portal, Backdrop, Content, DragIndicator, DragIndicatorWrapper, Item, ItemText, ScrollView, VirtualizedList, FlatList, SectionList, SectionHeaderText, }: { Portal: React.ComponentType<SelectPortalProps>; Backdrop: React.ComponentType<SelectBackdropProps>; Content: React.ComponentType<SelectContentProps>; DragIndicator: React.ComponentType<SelectDragIndicatorProps>; DragIndicatorWrapper: React.ComponentType<SelectDragIndicatorWrapperProps>; Item: React.ComponentType<SelectItemProps>; ItemText: React.ComponentType<SelectItemTextProps>; ScrollView: React.ComponentType<SelectScrollViewProps>; VirtualizedList: React.ComponentType<SelectVirtualizedListProps>; FlatList: React.ComponentType<SelectFlatListProps>; SectionList: React.ComponentType<SelectSectionListProps>; SectionHeaderText: React.ComponentType<SelectSectionHeaderTextProps>; }): ISelectComponentType<SelectProps, SelectTriggerProps, SelectInputProps, SelectIconProps, SelectPortalProps, SelectBackdropProps, SelectContentProps, SelectDragIndicatorProps, SelectDragIndicatorWrapperProps, SelectItemProps, SelectItemTextProps, SelectScrollViewProps, SelectVirtualizedListProps, SelectFlatListProps, SelectSectionListProps, SelectSectionHeaderTextProps>;