Table of contents

None namespace

Signature
Source

packages/tldraw/src/index.ts


Methods

CheckboxItem

Public function

Signature
function CheckboxItem({
  children,
  onSelect,
  ...rest
}: DropdownMenuCheckboxItemProps): import('react/jsx-runtime').JSX.Element
Parameters
NameDescription

{ children, onSelect, ...rest }

DropdownMenuCheckboxItemProps
Returns
import('react/jsx-runtime').JSX.Element
References

DropdownMenuCheckboxItemProps

Source

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


Content

Public function

Signature
function Content({
  side,
  align,
  sideOffset,
  alignOffset,
  children,
}: {
  children: any
  alignOffset?: number
  sideOffset?: number
  align?: 'center' | 'end' | 'start'
  side?: 'bottom' | 'left' | 'right' | 'top'
}): import('react/jsx-runtime').JSX.Element
Parameters
NameDescription

{ side, align, sideOffset, alignOffset, children, }

{
  children: any
  alignOffset?: number
  sideOffset?: number
  align?: 'center' | 'end' | 'start'
  side?: 'bottom' | 'left' | 'right' | 'top'
}
Returns
import('react/jsx-runtime').JSX.Element
Source

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


Group

Public function

Signature
function Group({
  children,
  size,
}: {
  children: any
  size?: 'medium' | 'small' | 'tiny' | 'wide'
}): import('react/jsx-runtime').JSX.Element
Parameters
NameDescription

{ children, size, }

{
  children: any
  size?: 'medium' | 'small' | 'tiny' | 'wide'
}
Returns
import('react/jsx-runtime').JSX.Element
Source

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


Indicator

Public function

Signature
function Indicator(): import('react/jsx-runtime').JSX.Element
Source

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


Item

Public function

Signature
function Item({
  noClose,
  ...props
}: DropdownMenuItemProps): import('react/jsx-runtime').JSX.Element
Parameters
NameDescription

{ noClose, ...props }

DropdownMenuItemProps
Returns
import('react/jsx-runtime').JSX.Element
References

DropdownMenuItemProps

Source

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


RadioItem

Public function

Signature
function RadioItem({
  children,
  onSelect,
  ...rest
}: DropdownMenuCheckboxItemProps): import('react/jsx-runtime').JSX.Element
Parameters
NameDescription

{ children, onSelect, ...rest }

DropdownMenuCheckboxItemProps
Returns
import('react/jsx-runtime').JSX.Element
References

DropdownMenuCheckboxItemProps

Source

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


Root

Public function

Signature
function Root({
  id,
  children,
  modal,
  debugOpen,
}: {
  id: string
  children: any
  modal?: boolean
  debugOpen?: boolean
}): import('react/jsx-runtime').JSX.Element
Parameters
NameDescription

{ id, children, modal, debugOpen, }

{
  id: string
  children: any
  modal?: boolean
  debugOpen?: boolean
}
Returns
import('react/jsx-runtime').JSX.Element
Source

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


Sub

Public function

Signature
function Sub({
  id,
  children,
}: {
  id: string
  children: any
}): import('react/jsx-runtime').JSX.Element
Parameters
NameDescription

{ id, children }

{
  id: string
  children: any
}
Returns
import('react/jsx-runtime').JSX.Element
Source

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


SubContent

Public function

Signature
function SubContent({
  alignOffset,
  sideOffset,
  children,
}: {
  alignOffset?: number
  sideOffset?: number
  children: any
}): import('react/jsx-runtime').JSX.Element
Parameters
NameDescription

{ alignOffset, sideOffset, children, }

{
  alignOffset?: number
  sideOffset?: number
  children: any
}
Returns
import('react/jsx-runtime').JSX.Element
Source

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


SubTrigger

Public function

Signature
function SubTrigger({
  label,
  'data-testid': testId,
  'data-direction': dataDirection,
}: {
  label: Exclude<string, TLUiTranslationKey> | TLUiTranslationKey
  'data-testid'?: string
  'data-direction'?: 'left' | 'right'
}): import('react/jsx-runtime').JSX.Element
Parameters
NameDescription

{ label, 'data-testid': testId, 'data-direction': dataDirection, }

{
  label:
    | Exclude<string, TLUiTranslationKey>
    | TLUiTranslationKey
  'data-testid'?: string
  'data-direction'?: 'left' | 'right'
}
Returns
import('react/jsx-runtime').JSX.Element
References

TLUiTranslationKey

Source

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


Trigger

Public function

Signature
function Trigger({
  children,
  'data-testid': testId,
}: {
  children: any
  'data-testid'?: string
}): import('react/jsx-runtime').JSX.Element
Parameters
NameDescription

{ children, 'data-testid': testId, }

{
  children: any
  'data-testid'?: string
}
Returns
import('react/jsx-runtime').JSX.Element
Source

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


DrawShapeUtilEmbedShapeUtil