Skip to main content

StrokeMask

The StrokeMask component draws a representation of a given Mask object, intended to be used to show the different regions of a design. It takes up 100% of its parent's height and width. For a filled-in version, see the FillMask component.

nametyperequiredcomment
heightnumberyes

Height to use for the underlying SVG's viewbox

maskMaskyes

Collection of points used to draw the SVG

widthnumberyes

Width to use for the underlying SVG's viewbox

alternateStrokeColorstringno

If shouldAlternate is true, the other color of the stroke

ariaLabelstringno
classNamestringno
closePathbooleanno

If the given path isn't closed, close it automatically

Default value: true
dashLengthnumberno
roleAriaRoleno
shouldAlternatebooleanno

Show a second color instead of empty space between strokes

Default value: true
strokeColorstringno
Default value: '#C4CDD6'
strokeWidthnumberno
Default value: 0.1
styleCSSPropertiesno

Demo

Result
Loading...
Live Editor