DefaultDashStyle
See source codeDefault dash style property used by tldraw shapes for line styling. Controls how shape outlines and lines are rendered with different dash patterns.
Available values:
draw
- Hand-drawn, sketchy line stylesolid
- Continuous solid linedashed
- Evenly spaced dashesdotted
- Evenly spaced dots
DefaultDashStyle: import('./StyleProp').EnumStyleProp<
'dashed' | 'dotted' | 'draw' | 'solid'
>
Example
import { DefaultDashStyle } from '@tldraw/tlschema'
// Use in shape props definition
interface MyShapeProps {
dash: typeof DefaultDashStyle
// other props...
}
// Create a shape with dashed outline
const shape = {
// ... other properties
props: {
dash: 'dashed' as const,
// ... other props
},
}
Prev
DefaultColorThemePaletteNext
DefaultFillStyle