DefaultDashStyle

See source code

Default 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 style - solid - Continuous solid line - dashed - Evenly spaced dashes - dotted - 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
DefaultColorThemePalette
Next
DefaultFillStyle