Note:
!modal
is commonly used to force display a component within the DOM structure and is used in conjunction with the forceOpened
props.forceOpened
is commonly used in the development process.Determines Data:
props.actions
or manually specifying the children component.props.actions
or children
of <Command>
must be specified, you cannot use both at the same time or omit both.<Command.Root>
compound component as the parent of another <Command>
compound.When using Command
in more than one place with different states, be sure to create different store
and storeState
using createCommand()
.
type T =
| "search"
| "overlay"
| "content"
| "footer"
| "searchWrap"
| "searchLabel"
| "closeCommand"
| "empty"
| "actionsOrder"
| "actionSection"
| "actionsList"
| "actionsGroup"
| "actionGroupLabel"
| "action"
| "actionLabel"
| "actionInner"
| "highlight"
| "actionDescription"
| "actionLeftSection"
| "actionRightSection"
| "footer";
Styles API | Type | Default | Annotation |
---|---|---|---|
unstyled? | Partial<Record<T, boolean>> | false | if true , default styles will be removed |
className? | string | undefined | pass to root component <div> |
classNames? | Partial<Record<T, string>> | undefined | |
style? | CSSProperties | undefined | pass to root component <div> |
styles? | Partial<Record<T, CSSProperties>> | undefined |
Props API | Type | Default | Annotation |
---|---|---|---|
-? | - | - | -- |