properties
changelog

Mask Clip

Define mask clip area within element.

Usage:

  • @mask clip-*;

Reference

shilp.config.js
/** @type {import('shilpcss/types').ShilpConfig} */
const shilpConfig = {
  source: "react",

  properties: {
    mask: {
      clip: {
        property: "mask-clip: <v><i>;",
        values: {
          border: "border-box",
          content: "content-box",
          padding: "padding-box",
          fill: "fill-box",
          stroke: "stroke-box",
          view: "view-box",
          none: "no-clip",
        },
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: