Content

Mask

The mask feature trims the content of an element into unique shapes, providing a simple way to create visually distinct designs.

Basic examples

Squircle

By applying the class `mask` along with `mask-{shape-name}` to an element, you can utilize various shapes to clip your image.

mask image

Heart

Example of heart.

mask image

Hexagon

Example of hexagon.

mask image

Hexagon-2

Example of hexagon-2.

mask image

Decagon

Example of decagon.

mask image

Pentagon

Example of pentagon.

mask image

Diamond

Example of diamond.

mask image

Circle

Example of circle.

mask image

Parallelogram

Example of parallelogram.

mask image

Parallelogram-2

Example of parallelogram-2.

mask image

Parallelogram-3

Example of parallelogram-3.

mask image

Parallelogram-4

Example of parallelogram-4.

mask image

Star

Example of star.

mask image

Star-2

Example of star-2.

mask image

Triangle

Example of triangle.

mask image

Triangle-2

Example of triangle-2.

mask image

Triangle-3

Example of triangle-3.

mask image

Triangle-4

Example of triangle-4.

mask image

Sides

mask-half-1

Utilizing the classes `mask-half-1` and `mask-half-2` in conjunction with `mask-shape_name` allows you to isolate specific sides of the shape. `mask-half-1` represents the left side, while `mask-half-2` represents the right side. Incorporate these classes to enhance the style and appearance of your mask shapes.

mask image

mask-half-2

Example of mask-half-2.

mask image
Class referenceThe component, style, color, state, size and modifier classes available for this component.
ClassTypeDescription
maskcomponentMasks the content with shape.
mask-squirclemodifierApplies squircle shape.
mask-heartmodifierApplies heart shape.
mask-hexagonmodifierApplies hexagon shape.
mask-hexagon-2modifierApplies hexagon alternative shape.
mask-decagonmodifierApplies decagon shape.
mask-pentagonmodifierApplies pentagon shape.
mask-diamondmodifierApplies diamond shape.
mask-squaremodifierApplies square shape.
mask-circlemodifierApplies circle shape.
mask-parallelogrammodifierApplies parallelogram shape.
mask-parallelogram-2modifierApplies parallelogram alternative shape.
mask-parallelogram-3modifierApplies parallelogram alternative shape.
mask-parallelogram-4modifierApplies parallelogram alternative shape.
mask-starmodifierApplies star shape.
mask-star-2modifierApplies star alternative shape.
mask-trianglemodifierApplies triangle shape.
mask-triangle-2modifierApplies triangle alternative shape.
mask-triangle-3modifierApplies triangle alternative shape.
mask-triangle-4modifierApplies triangle alternative shape.
mask-half-1modifierCrops only the first half of mask.
mask-half-2modifierCrops only the second half of mask.