@manta-eu/react/combobox
Reference for @manta-eu/react/combobox as it is on main.
Type Aliases
ComboboxAddButtonProps
ComboboxAddButtonProps =
Omit<ComponentPropsWithoutRef<"button">,"onClick"> &object
Type Declaration
label?
optionallabel?:string
onAdd?
optionalonAdd?: (_value) =>void
Parameters
_value
string
Returns
void
ref?
optionalref?:Ref<HTMLButtonElement>
ComboboxContentProps
ComboboxContentProps =
ComponentPropsWithoutRef<typeofPopoverPrimitive.Content> &object
Type Declaration
align?
optionalalign?:"start"|"center"|"end"
filter?
optionalfilter?: (_value,_search) =>number
Parameters
_value
string
_search
string
Returns
number
ref?
optionalref?:Ref<HTMLDivElement>
side?
optionalside?:"top"|"right"|"bottom"|"left"
ComboboxEmptyProps
ComboboxEmptyProps =
ComponentPropsWithoutRef<typeofCommandPrimitive.Empty> &object
Type Declaration
ref?
optionalref?:Ref<HTMLDivElement>
ComboboxGroupProps
ComboboxGroupProps =
ComponentPropsWithoutRef<typeofCommandPrimitive.Group> &object
Type Declaration
label?
optionallabel?:string
ref?
optionalref?:Ref<HTMLDivElement>
ComboboxInputProps
ComboboxInputProps =
Omit<ComponentPropsWithoutRef<typeofCommandPrimitive.Input>,"className"> &object
Type Declaration
className?
optionalclassName?:string
containerClassName?
optionalcontainerClassName?:string
ref?
optionalref?:Ref<HTMLInputElement>
ComboboxItemProps
ComboboxItemProps =
ComponentPropsWithoutRef<typeofCommandPrimitive.Item> &object
Type Declaration
closeOnSelect?
optionalcloseOnSelect?:boolean
icon?
optionalicon?:ReactNode
ref?
optionalref?:Ref<HTMLDivElement>
selected?
optionalselected?:boolean
ComboboxListProps
ComboboxListProps =
ComponentPropsWithoutRef<typeofCommandPrimitive.List> &object
Type Declaration
ref?
optionalref?:Ref<HTMLDivElement>
ComboboxProps
ComboboxProps =
ComponentPropsWithoutRef<typeofPopoverPrimitive.Root>
ComboboxSeparatorProps
ComboboxSeparatorProps =
HTMLAttributes<HTMLDivElement> &object
Type Declaration
ref?
optionalref?:Ref<HTMLDivElement>
Variables
ComboboxAnchor
constComboboxAnchor:ForwardRefExoticComponent<PopoverAnchorProps&RefAttributes<HTMLDivElement>> =PopoverPrimitive.Anchor
ComboboxTrigger
constComboboxTrigger:ForwardRefExoticComponent<PopoverTriggerProps&RefAttributes<HTMLButtonElement>> =PopoverPrimitive.Trigger
Functions
Combobox()
Combobox(
props):Element
Parameters
props
PopoverProps
Returns
Element
ComboboxAddButton()
ComboboxAddButton(
props):Element
Parameters
props
Returns
Element
ComboboxContent()
ComboboxContent(
props):Element
Parameters
props
Returns
Element
ComboboxEmpty()
ComboboxEmpty(
props):Element
Parameters
props
Returns
Element
ComboboxGroup()
ComboboxGroup(
props):Element
Parameters
props
Returns
Element
ComboboxInput()
ComboboxInput(
props):Element
Parameters
props
Returns
Element
ComboboxItem()
ComboboxItem(
props):Element
Parameters
props
Returns
Element
ComboboxList()
ComboboxList(
props):Element
Parameters
props
Returns
Element
ComboboxSeparator()
ComboboxSeparator(
props):Element
Parameters
props
Returns
Element