src/docs/mask-repeat.mdx
import { ApiTable } from "@/components/api-table.tsx"; import { Example } from "@/components/example.tsx"; import { Figure } from "@/components/figure.tsx"; import { ResponsiveDesign } from "@/components/content.tsx"; import { Stripes } from "@/components/stripes.tsx";
export const title = "mask-repeat"; export const description = "Utilities for controlling the repetition of an element's mask image.";
<ApiTable rows={[ ["mask-repeat", "mask-repeat: repeat;"], ["mask-no-repeat", "mask-repeat: no-repeat;"], ["mask-repeat-x", "mask-repeat: repeat-x;"], ["mask-repeat-y", "mask-repeat: repeat-y;"], ["mask-repeat-space", "mask-repeat: space;"], ["mask-repeat-round", "mask-repeat: round;"], ]} />
Use the mask-repeat utility to repeat the mask image both vertically and horizontally:
Use the mask-repeat-x utility to only repeat the mask image horizontally:
Use the mask-repeat-y utility to only repeat the mask image vertically:
Use the mask-repeat-space utility to repeat the mask image without clipping:
Use the mask-repeat-round utility to repeat the mask image without clipping, stretching if needed to avoid gaps:
Use the mask-no-repeat utility to prevent a mask image from repeating: