Manta Developers
GitHub
Menu

@manta-eu/react/command

Reference for @manta-eu/react/command as it is on main.

Type Aliases

CommandIconProps

CommandIconProps = object

Properties

className?

optional className?: string

icon

icon: ComponentType<{ className?: string; size?: number; strokeWidth?: number; }>


CommandImageProps

CommandImageProps = object

Properties

image?

optional image?: string

title

title: string


CommandResultItem

CommandResultItem = object

Properties

children?

optional children?: ReactNode

disabled?

optional disabled?: boolean

href?

optional href?: string

icon?

optional icon?: ComponentType<{ className?: string; size?: number; strokeWidth?: number; }>

id

id: string

onSelect?

optional onSelect?: () => void

Returns

void

title

title: string


CommandResultsProps

CommandResultsProps = object

Properties

heading

heading: string

items

items: CommandResultItem[]

onSelect

onSelect: (_item) => void

Parameters
_item

CommandResultItem

Returns

void

Variables

Command

const Command: ForwardRefExoticComponent<Omit<Children & Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & object & object, "key" | "asChild" | keyof HTMLAttributes<HTMLDivElement>> & object & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>


CommandEmpty

const CommandEmpty: ForwardRefExoticComponent<Omit<Children & Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & object & object, "key" | "asChild" | keyof HTMLAttributes<HTMLDivElement>> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>


CommandGroup

const CommandGroup: ForwardRefExoticComponent<Omit<Children & Omit<Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & object & object, "key" | "asChild" | keyof HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & object & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>


CommandInput

const CommandInput: ForwardRefExoticComponent<Omit<Omit<Pick<Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof InputHTMLAttributes<HTMLInputElement>> & object & object, "key" | "asChild" | keyof InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & object & RefAttributes<HTMLInputElement>, "ref"> & object & RefAttributes<HTMLInputElement>>


CommandItem

const CommandItem: ForwardRefExoticComponent<Omit<Children & Omit<Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & object & object, "key" | "asChild" | keyof HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & object & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>


CommandList

const CommandList: ForwardRefExoticComponent<Omit<Children & Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & object & object, "key" | "asChild" | keyof HTMLAttributes<HTMLDivElement>> & object & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>


CommandSeparator

const CommandSeparator: ForwardRefExoticComponent<Omit<Pick<Pick<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & object & object, "key" | "asChild" | keyof HTMLAttributes<HTMLDivElement>> & object & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>

Functions

CommandDialog()

CommandDialog(__namedParameters): Element

Parameters

__namedParameters

DialogProps

Returns

Element


CommandIcon()

CommandIcon(props): Element

Parameters

props

CommandIconProps

Returns

Element


CommandImage()

CommandImage(props): Element

Parameters

props

CommandImageProps

Returns

Element


CommandResults()

CommandResults(props): Element | null

Parameters

props

CommandResultsProps

Returns

Element | null


CommandShortcut()

CommandShortcut(__namedParameters): Element

Parameters

__namedParameters

ComponentPropsWithoutRef<"span">

Returns

Element