Skip to content

KLoadingState

示例

Loading your data...

A loading indicator with an optional message, usable inline or as a centered block.

Props

NameTypeDefaultDescription
messagestring'Loading...'Text displayed next to the spinner.
size'sm' | 'md' | 'lg''md'Size of the spinner and text.
inlinebooleanfalseWhether to render as an inline element instead of a centered block.
classstringAdditional CSS classes for the root element.

Emits

NameParametersDescription
This component does not emit custom events.

Slots

NameDescription
This component does not provide slots.

Basic Usage

vue
<script setup>
import { KLoadingState } from '@kK-2004/ui-component'
</script>

<template>
  <KLoadingState message="Fetching data..." size="md" />
</template>