Skip to main content

FillMask

The FillMask component draws a filled-in 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 border-only version, see the StrokeMask 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

ariaLabelstringno
classNamestringno
fillColorstringno
Default value: '#C4CDD6'
roleAriaRoleno
styleCSSPropertiesno
useBorderbooleanno

Whether to draw a border around the SVG.

Default value: true

Demo

Result
Loading...
Live Editor