Documentation

Skeleton

Displays a placeholder preview of content before the data gets loaded to reduce load-time frustration.

Examples

import { Skeleton } from 'kalki-design'

<Skeleton></Skeleton>

Installation

npx kalki-design add skeleton

Usage

import { Skeleton } from 'kalki-design'

export default function Example() {
  return <Skeleton />
}

API Reference

NameTypeDefaultDescription
NamevariantType'text' | 'circular' | 'rectangular' | 'rounded'Default'text'DescriptionThe visual style of the skeleton.
NamewidthTypestring | numberDefaultDescriptionOverrides the default width.
NameheightTypestring | numberDefaultDescriptionOverrides the default height.
NamecountTypenumberDefault1DescriptionNumber of repeating skeleton lines to render.
NameanimateTypebooleanDefaulttrueDescriptionWhether to show the pulse animation.