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
import { Mask } from '@sigx/daisyui';
Basic Usage
Loading preview...
All Shapes
Loading preview...
Half Masks
DaisyUI's mask-half-1 / mask-half-2 modifiers keep only one half of the
shape; pass them through class.
Loading preview...
Props
| Prop | Type | Default | Description |
|---|---|---|---|
shape | MaskShape | - | 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 |
class | string | - | Additional CSS classes — use it to size the mask |
Slots
| Slot | Description |
|---|---|
default | Content to clip |
