Skip to content

KSpin

Show animation while loading data.

Install

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

Basic usage

Use show, control loading show.

Full screen

Use the fullScreen property to enable a full-screen spin.

Custom background color

Use the background property to set the background color.

Custom Spinner

The spinner attribute can also be passed directly into a component to display content as a spin

Loading Options

NameTypeDefaultDescription
showbooleanfalseWhether to show spin
textstring-loading text that displays under the spinner
fullScreenbooleanfalseShow a full screen animation while loading data
backgroundstring-background color of the mask
spinnerstring-The class name of the snipper, following the unocss standard
rotatingbooleantrueWhether the snipper is rotated or not
clsstring-Additional class
attrsRecord<string, string>{}Additional attributes

MIT Licensed