Skip to content

KMask

Adds a mask to the specified element.

Install

bash
pnpm add @ikun-ui/mask
bash
yarn add @ikun-ui/mask
bash
npm install @ikun-ui/mask

Basic usage

Custom background color

Set the background color of the mask through the color Attribute

Mask Props

NameTypeDefaultDescription
colorstring-The background color of the mask
valuebooleanfalseWhether to display the mask
targetnull / HTMLElementparent elementThe target element covered by the mask
clsstring-Additional class
attrsRecord<string, string>{}Additional attributes

Mask Slots

NameDescription
defaultCustomize Mask content

MIT Licensed