TLUiCommandPaletteShellProps
Table of contents
interface TLUiCommandPaletteShellProps {}Properties
children
The palette's items, as TldrawUiMenu* components and, with an editor, CommandPalette* groups.
children: ReactNode;position
optional
Where the palette opens. Defaults to 'bottom', which sits just above the horizontal toolbar at its width (at least 320px), and otherwise opens lower than 'center'. 'top' sits near the top edge. On touch devices every position opens near the top edge.
position?: TLUiCommandPalettePosition;suggestions
optional
What shows above the list while the query is empty. 'recent', the default, lists recently run commands; 'none' shows nothing. Recents still rank search results either way.
suggestions?: TLUiCommandPaletteSuggestions;Methods
onClose
Called when the user dismisses the palette or runs a command.
Prev
TLUiCommandPalettePropsNext
TLUiComponents