Mask#

Mask clips whatever you put inside it to one of DaisyUI's shapes. It works on images, coloured blocks — anything with a size.

Import#

TSX
import { Mask } from '@sigx/daisyui';

Basic Usage#

TSX
Loading preview...

All Shapes#

TSX
Loading preview...

Half Masks#

DaisyUI's mask-half-1 / mask-half-2 modifiers keep only one half of the shape; pass them through class.

TSX
Loading preview...

Props#

PropTypeDefaultDescription
shapeMaskShape-One of squircle, heart, hexagon, hexagon-2, decagon, pentagon, diamond, square, circle, parallelogram, parallelogram-2, parallelogram-3, parallelogram-4, star, star-2, triangle, triangle-2, triangle-3, triangle-4
classstring-Additional CSS classes — use it to size the mask

Slots#

SlotDescription
defaultContent to clip