Back to Daisyui

Mask

skills/daisyui/components/mask.md

5.7.19741 B
Original Source

Mask

A mask crops the content of an element to a common shape.

Mask documentation

Class names

  • component: mask
  • style: mask-squircle, mask-heart, mask-hexagon, mask-hexagon-2, mask-decagon, mask-pentagon, mask-diamond, mask-square, mask-circle, mask-star, mask-star-2, mask-triangle, mask-triangle-2, mask-triangle-3, mask-triangle-4
  • modifier: mask-half-1, mask-half-2

Syntax

html

Rules

  • You must specify {MODIFIER}. It can be one of the style or modifier class names.
  • To change the shape of an element, use the mask class names.
  • To set a custom size, use w-* and h-*.