Skeleton

Use to show a placeholder while content is loading.

Installation

The CLI is not yet available. For now, manually copy the component source into your project.

rust-shadcn-ui add skeleton

Usage

use yew::prelude::*;

use crate::components::ui::skeleton::{Skeleton};

#[component]
fn Usage() -> impl IntoView {
    view! {
        <Skeleton class="w-[100px] h-[20px] rounded-full" />
    }
}

Examples

Card

See Also