TLUiToolItem
See source codeTable of contents
interface TLUiToolItem<
TranslationKey extends string = string,
IconType extends string = string,
> {}Properties
icon
icon: IconType | TLUiIconJsxid
id: stringkbd
optional
The keyboard shortcut for this tool. This is a string that can be a single key,
or a combination of keys.
For example, cmd+z or cmd+shift+z or cmd+u,ctrl+u, or just v or a.
We have backwards compatibility with the old system, where we used to use
symbols to denote cmd/alt/shift, using ! for shift, $ for cmd, and ? for alt.
kbd?: stringlabel
label: TranslationKeymeta
optional
meta?: {
[key: string]: any
}readonlyOk
optional
readonlyOk?: booleanshortcutsLabel
optional
shortcutsLabel?: TranslationKeyMethods
onDragStart
optional
Parameters
| Name | Description |
|---|---|
| |
|
Returns
voidonSelect
Parameters
| Name | Description |
|---|---|
|
Returns
voidPrev
TLUiToolbarToggleItemPropsNext
TLUiToolsProviderProps