Mask

Examples

mask

mask-squircle

mask-heart

mask-hexagon

mask-hexagon-2

mask-decagon

mask-pentagon

mask-diamond

mask-square

mask-circle

mask-parallelogram

mask-parallelogram-2

mask-parallelogram-3

mask-parallelogram-4

mask-star

mask-star-2

mask-triangle

mask-triangle-2

mask-triangle-3

mask-triangle-4

export default {
  setup: () => {
    const types = [
      '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',
    ];
    return () => (
      <div>
        {types.map((type) => (
          <div key={type}>
            <p class="my-2">mask-{type}</p>
            <dv-mask type={type} class="mb-8">
              <img src="https://placeimg.com/192/192/people" />
            </dv-mask>
          </div>
        ))}
      </div>
    );
  },
};
tsx

Mask

Attributes

namedescriptiontypedefault
typethe shape type of contentsquircle, 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-4squircle