Skeleton

Feedback

A placeholder for loading state — rectangular or circular shapes.

Preview

Variants

Rectangle
Circle

Usage

skeleton.rs
use floe_ui::components::skeleton;

"text-zinc-500">// Rectangular placeholder
let rect = skeleton::rect(200, 16, &tokens);

"text-zinc-500">// Circular placeholder (e.g. avatar loading)
let circle = skeleton::circle(48, &tokens);

API Reference

Props / Parameters

NameTypeDescription
widthimpl Into<Length>Width of the skeleton
heightimpl Into<Length>Height of the skeleton (rect only)
diameterimpl Into<Length>Diameter of the circle (circle only)
tokens&DesignTokensDesign tokens for theming

Style Functions

default_style(tokens)
circle_style(tokens)

Style functions return closures compatible with Iced's .style() method.

Builder Functions

rect(width, height, tokens)
circle(diameter, tokens)

Builder functions return pre-configured Iced widgets ready for use.

Source: floe-ui/src/components/skeleton.rs