TLUiCommandPaletteShellProps

See source code
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.


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.


Methods

onClose

Called when the user dismisses the palette or runs a command.


Prev
TLUiCommandPaletteProps
Next
TLUiComponents