Table of contents

Public interface

Signature
interface TLUiToolItem<
  TranslationKey extends string = string,
  IconType extends string = string,
> {}
Source

packages/tldraw/src/lib/ui/hooks/useTools.tsx


Properties

icon

Public propertysignature

Signature
icon: IconType

id

Public propertysignature

Signature
id: string

kbd

Public propertysignature

Signature
kbd?: string

label

Public propertysignature

Signature
label: TranslationKey

meta

Public propertysignature

Signature
meta?: {
  [key: string]: any
}

onSelect

Public propertysignature

Signature
onSelect: (source: TLUiEventSource) => void
References

TLUiEventSource


readonlyOk

Public propertysignature

Signature
readonlyOk: boolean

shortcutsLabel

Public propertysignature

Signature
shortcutsLabel?: TranslationKey

TLUiToolbarSchemaContextTypeTLUiToolsContextType