TLDefaultDashStyle

See source code

Type representing a default dash style value. This is a union type of all available dash style options.

type TLDefaultDashStyle = T.TypeOf<typeof DefaultDashStyle>

Example

import { TLDefaultDashStyle } from '@tldraw/tlschema'

// Valid dash style values
const drawStyle: TLDefaultDashStyle = 'draw'
const solidStyle: TLDefaultDashStyle = 'solid'
const dashedStyle: TLDefaultDashStyle = 'dashed'
const dottedStyle: TLDefaultDashStyle = 'dotted'

// Use in a function parameter
function setShapeDash(dash: TLDefaultDashStyle) {
  // Apply dash style to shape
}
Prev
TLDefaultColorTheme
Next
TLDefaultFillStyle