Mask

DaisyUI

Mask crops the content of the element to common shapes.

Shapes

Squircle, heart, hexagon, circle, star, triangle.

Code Example
use rsxui::components::{Mask, MaskShape};
use rsx_macros::rsx;
let html = rsx! {
    <Mask shape=MaskShape::Circle class="w-24 h-24">
        <img src="photo.jpg" />
    </Mask>
};