DefaultSizeStyle
See source codeDefault size style property used by tldraw shapes for scaling visual elements. Controls the relative size of shape elements like stroke width, text size, and other proportional features.
Available values:
s
- Small sizem
- Medium size (default)l
- Large sizexl
- Extra large size
DefaultSizeStyle: import('./StyleProp').EnumStyleProp<'l' | 'm' | 's' | 'xl'>
Example
import { DefaultSizeStyle } from '@tldraw/tlschema'
// Use in shape props definition
interface MyShapeProps {
size: typeof DefaultSizeStyle
// other props...
}
// Create a shape with large size
const shape = {
// ... other properties
props: {
size: 'l' as const,
// ... other props
},
}
Prev
defaultShapeSchemasNext
DefaultTextAlignStyle