KMask
Adds a mask to the specified element.
Install
bash
pnpm add @ikun-ui/maskpnpm add @ikun-ui/maskbash
yarn add @ikun-ui/maskyarn add @ikun-ui/maskbash
npm install @ikun-ui/masknpm install @ikun-ui/maskBasic usage
Custom background color
Set the background color of the mask through the color Attribute
Mask Props
| Name | Type | Default | Description |
|---|---|---|---|
| color | string | - | The background color of the mask |
| value | boolean | false | Whether to display the mask |
| target | null / HTMLElement | parent element | The target element covered by the mask |
| cls | string | - | Additional class |
| attrs | any | {} | Additional attributes |
Mask Slots
| Name | Description |
|---|---|
| default | Customize Mask content |