Skip to content
Logic2BUI

Search docs

Search components and documentation

New
Menu

Skeleton

Use to show a placeholder while content is loading.

Installation

npx logic2b@latest add skeleton

Usage

import { Skeleton } from "@/components/ui/skeleton"

<Skeleton className="h-4 w-[250px]" />

API

Skeleton renders a single <div> and forwards every native <div> prop. Set its shape and size with className.

Prop Type Default
className string — size, shape, and layout utilities
...props React.ComponentProps<"div">

Examples

Card

List