Public function

Signature
truncateStringWithEllipsis: (str: string, maxLength: number) => string
Parameters
NameDescription

str

string

maxLength

number
Returns
string
Source

packages/tldraw/src/lib/utils/text/text.ts

TriangleToolbarItemUiEventsProvider