@manta-eu/react/command
Reference for @manta-eu/react/command as it is on main.
Type Aliases
CommandIconProps
CommandIconProps =
object
Properties
className?
optionalclassName?:string
icon
icon:
ComponentType<{className?:string;size?:number;strokeWidth?:number; }>
CommandImageProps
CommandImageProps =
object
Properties
image?
optionalimage?:string
title
title:
string
CommandResultItem
CommandResultItem =
object
Properties
children?
optionalchildren?:ReactNode
disabled?
optionaldisabled?:boolean
href?
optionalhref?:string
icon?
optionalicon?:ComponentType<{className?:string;size?:number;strokeWidth?:number; }>
id
id:
string
onSelect?
optionalonSelect?: () =>void
Returns
void
title
title:
string
CommandResultsProps
CommandResultsProps =
object
Properties
heading
heading:
string
items
items:
CommandResultItem[]
onSelect
onSelect: (
_item) =>void
Parameters
_item
Returns
void
Variables
Command
constCommand: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
constCommandEmpty: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
constCommandGroup: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
constCommandInput: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
constCommandItem: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
constCommandList: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
constCommandSeparator: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
Returns
Element
CommandImage()
CommandImage(
props):Element
Parameters
props
Returns
Element
CommandResults()
CommandResults(
props):Element|null
Parameters
props
Returns
Element | null
CommandShortcut()
CommandShortcut(
__namedParameters):Element
Parameters
__namedParameters
ComponentPropsWithoutRef<"span">
Returns
Element