Skip to content
On this page

KMask ​

Adds a mask to the specified element.

Install ​

bash
pnpm add @ikun-ui/mask
pnpm add @ikun-ui/mask
bash
yarn add @ikun-ui/mask
yarn add @ikun-ui/mask
bash
npm install @ikun-ui/mask
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
attrsany{}Additional attributes

Mask Slots ​

NameDescription
defaultCustomize Mask content

MIT Licensed