# Skeleton

A loading placeholder in the shape of what's coming.

- Registry name: `skeleton` (`@candor/skeleton`)
- Tier: Free (MIT). No licence key needed.
- Docs: https://candor.themethodic.com/docs/skeleton

## Install

```bash
npx candor-ui add skeleton
```

Run `npx candor-ui@latest init` once first (https://candor.themethodic.com/get-started.md). Without the CLI: `npx shadcn@latest add @candor/skeleton`.
It brings in: utils.

## Example

```tsx
"use client"

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

export default function Example() {
  return (
    <div role="status" aria-label="Loading the run" className="flex w-full max-w-sm flex-col gap-2">
      <Skeleton className="h-4 w-2/3" />
      <Skeleton className="h-4 w-full" />
      <Skeleton className="h-4 w-5/6" />
    </div>
  )
}
```

## <Skeleton>

No props.

Also takes the props of `React.ComponentProps<"div">`.

## Rules for using Candor UI

- Components take plain typed data. Never pass model output as HTML or render it as a link; messages are typed blocks.
- A control that can't be used says why: wrap it in `<Locked reason="…">`, don't just disable it.
- Don't show a value you don't have: leave it out (it renders as —) rather than guess. An estimate is labelled as one.
- Nothing is pre-selected in a decision a person makes, and the agent is named from your app's data, never from model output.
- Your app's words go in `LocaleProvider` (fixed strings) and `TermsProvider` (nouns); entity kinds and agent roles in `EntityKindsProvider` and `AgentRolesProvider`.
