Skip to content
h v3.13.3
Search the docs
Find a component, section or page.

Skeleton

Use to show a placeholder while content is loading.

Installation

pnpm add @heyramzi/ui

Usage

import { Skeleton } from "@heyramzi/ui/shadcn/skeleton";

API reference

Skeleton.Root

ref bindable HTMLDivElement | null
Default null
class string
...rest
Every prop of HTMLAttributes<HTMLDivElement> from svelte/elements except children
Prop Type Default
ref bindable HTMLDivElement | null null
class string
...rest Every prop of HTMLAttributes<HTMLDivElement> from svelte/elements except children

Skeleton.Delay

loading required boolean
The data is on its way.
skeleton required Snippet
What shows while it loads: one or more `Skeleton`s shaped like the content.
children required Snippet
The content, drawn once loading ends and the skeleton has had its minimum time.
showDelay number
Default SHOW_DELAY_MS
Ms to wait before the skeleton shows.
minVisible number
Default MIN_VISIBLE_MS
Ms the skeleton stays once it shows.
Prop Type Default
loading required

The data is on its way.

boolean
skeleton required

What shows while it loads: one or more `Skeleton`s shaped like the content.

Snippet
children required

The content, drawn once loading ends and the skeleton has had its minimum time.

Snippet
showDelay

Ms to wait before the skeleton shows.

number SHOW_DELAY_MS
minVisible

Ms the skeleton stays once it shows.

number MIN_VISIBLE_MS