Table of contents

Public interface

Signature
interface TLUiButtonProps extends React.HTMLAttributes<HTMLButtonElement> {}
Source

packages/tldraw/src/lib/ui/components/primitives/Button.tsx


Properties

disabled

Public propertysignature

Signature
disabled?: boolean

icon

Public propertysignature

Signature
icon?: Exclude<string, TLUiIconType> | TLUiIconType
References

TLUiIconType


iconLeft

Public propertysignature

Signature
iconLeft?: Exclude<string, TLUiIconType> | TLUiIconType
References

TLUiIconType


invertIcon

Public propertysignature

Signature
invertIcon?: boolean

isChecked

Public propertysignature

Signature
isChecked?: boolean

kbd

Public propertysignature

Signature
kbd?: string

label

Public propertysignature

Signature
label?: Exclude<string, TLUiTranslationKey> | TLUiTranslationKey
References

TLUiTranslationKey


loading

Public propertysignature

Signature
loading?: boolean

smallIcon

Public propertysignature

Signature
smallIcon?: boolean

spinner

Public propertysignature

Signature
spinner?: boolean

type

Public propertysignature

Signature
type:
  | 'danger'
  | 'help'
  | 'icon'
  | 'low'
  | 'menu'
  | 'normal'
  | 'primary'
  | 'tool'

TLUiAssetUrlOverridesTLUiContextMenuProps