Manta Developers
GitHub
Menu

@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?

optional label?: string

onAdd?

optional onAdd?: (_value) => void

Parameters
_value

string

Returns

void

ref?

optional ref?: Ref<HTMLButtonElement>


ComboboxContentProps

ComboboxContentProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> & object

Type Declaration

align?

optional align?: "start" | "center" | "end"

filter?

optional filter?: (_value, _search) => number

Parameters
_value

string

string

Returns

number

ref?

optional ref?: Ref<HTMLDivElement>

side?

optional side?: "top" | "right" | "bottom" | "left"


ComboboxEmptyProps

ComboboxEmptyProps = ComponentPropsWithoutRef<typeof CommandPrimitive.Empty> & object

Type Declaration

ref?

optional ref?: Ref<HTMLDivElement>


ComboboxGroupProps

ComboboxGroupProps = ComponentPropsWithoutRef<typeof CommandPrimitive.Group> & object

Type Declaration

label?

optional label?: string

ref?

optional ref?: Ref<HTMLDivElement>


ComboboxInputProps

ComboboxInputProps = Omit<ComponentPropsWithoutRef<typeof CommandPrimitive.Input>, "className"> & object

Type Declaration

className?

optional className?: string

containerClassName?

optional containerClassName?: string

ref?

optional ref?: Ref<HTMLInputElement>


ComboboxItemProps

ComboboxItemProps = ComponentPropsWithoutRef<typeof CommandPrimitive.Item> & object

Type Declaration

closeOnSelect?

optional closeOnSelect?: boolean

icon?

optional icon?: ReactNode

ref?

optional ref?: Ref<HTMLDivElement>

selected?

optional selected?: boolean


ComboboxListProps

ComboboxListProps = ComponentPropsWithoutRef<typeof CommandPrimitive.List> & object

Type Declaration

ref?

optional ref?: Ref<HTMLDivElement>


ComboboxProps

ComboboxProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>


ComboboxSeparatorProps

ComboboxSeparatorProps = HTMLAttributes<HTMLDivElement> & object

Type Declaration

ref?

optional ref?: Ref<HTMLDivElement>

Variables

ComboboxAnchor

const ComboboxAnchor: ForwardRefExoticComponent<PopoverAnchorProps & RefAttributes<HTMLDivElement>> = PopoverPrimitive.Anchor


ComboboxTrigger

const ComboboxTrigger: ForwardRefExoticComponent<PopoverTriggerProps & RefAttributes<HTMLButtonElement>> = PopoverPrimitive.Trigger

Functions

Combobox()

Combobox(props): Element

Parameters

props

PopoverProps

Returns

Element


ComboboxAddButton()

ComboboxAddButton(props): Element

Parameters

props

ComboboxAddButtonProps

Returns

Element


ComboboxContent()

ComboboxContent(props): Element

Parameters

props

ComboboxContentProps

Returns

Element


ComboboxEmpty()

ComboboxEmpty(props): Element

Parameters

props

ComboboxEmptyProps

Returns

Element


ComboboxGroup()

ComboboxGroup(props): Element

Parameters

props

ComboboxGroupProps

Returns

Element


ComboboxInput()

ComboboxInput(props): Element

Parameters

props

ComboboxInputProps

Returns

Element


ComboboxItem()

ComboboxItem(props): Element

Parameters

props

ComboboxItemProps

Returns

Element


ComboboxList()

ComboboxList(props): Element

Parameters

props

ComboboxListProps

Returns

Element


ComboboxSeparator()

ComboboxSeparator(props): Element

Parameters

props

ComboboxSeparatorProps

Returns

Element