Table of contents

Public interface

Signature
interface TLUiActionItem<
  TransationKey extends string = string,
  IconType extends string = string,
> {}
Source

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


Properties

checkbox

Public propertysignature

Signature
checkbox?: boolean

contextMenuLabel

Public propertysignature

Signature
contextMenuLabel?: TransationKey

icon

Public propertysignature

Signature
icon?: IconType

id

Public propertysignature

Signature
id: string

kbd

Public propertysignature

Signature
kbd?: string

label

Public propertysignature

Signature
label?: TransationKey

Public propertysignature

Signature
menuLabel?: TransationKey

onSelect

Public propertysignature

Signature
onSelect: (source: TLUiEventSource) => Promise<void> | void
References

TLUiEventSource


readonlyOk

Public propertysignature

Signature
readonlyOk: boolean

shortcutsLabel

Public propertysignature

Signature
shortcutsLabel?: TransationKey

title

Public propertysignature

Signature
title?: string

TldrawUiPropsTLUiActionsContextType