---
title: "Skeleton 컴포넌트 — zenit Zig UI"
description: "콘텐츠가 로드되는 동안 표시되는 자리표시자 골격.text / rect / circle 변형, 모서리, shimmer가 테마를 따릅니다."
url: https://zenit.z.express/ko/components/skeleton
language: ko
alternate_en: https://zenit.z.express/components/skeleton.md
alternate_zh: https://zenit.z.express/zh/components/skeleton.md
alternate_es: https://zenit.z.express/es/components/skeleton.md
alternate_ja: https://zenit.z.express/ja/components/skeleton.md
alternate_fr: https://zenit.z.express/fr/components/skeleton.md
alternate_de: https://zenit.z.express/de/components/skeleton.md
project: zenit v0.1.0-alpha (Zig 0.15.2, macOS)
source: https://github.com/version-next/zenit
---

# Skeleton

`ui.widgets.Skeleton`

콘텐츠가 로드되는 동안 표시되는 자리표시자 골격.

[Video](https://zenit.z.express/media/stories/skeleton.mp4?v=64767cb17e)

**BEHAVIOR CONTRACT**

text / rect / circle 변형, 모서리, shimmer가 테마를 따릅니다.

**RECORDED INTERACTION**

실제 shimmer 애니메이션을 보여 줍니다.

`examples/storybook/stories.zig:651`

```zig
// ── Skeleton ──
pub fn buildSkeleton(scope: *ui.Scope, cx: *ui.Cx) anyerror!*ui.Node {
    const a = cx.allocator;
    const c = try col(cx, 12);
    // 同 spinner：框到骨架图形本身，避开标题/描述文字的像素。
    c.meta.ownership.meta.test_id = "story.skeleton.col";
    try c.appendChild(a, try W.Skeleton(.{ .variant = .text, .width = 280, .height = 14 }).mount(scope, cx));
    try c.appendChild(a, try W.Skeleton(.{ .variant = .text, .width = 200, .height = 14 }).mount(scope, cx));
    try c.appendChild(a, try W.Skeleton(.{ .variant = .circular, .width = 48, .height = 48 }).mount(scope, cx));
    try c.appendChild(a, try W.Skeleton(.{ .variant = .rectangular, .width = 280, .height = 80 }).mount(scope, cx));
    return c;
}
```

[GitHub에서 소스 보기examples/storybook/stories.zig:651](https://github.com/version-next/zenit/blob/HEAD/examples/storybook/stories.zig#L651)

Storybook에 있는 이 story의 원본 코드입니다(zenit 5f9add5+wip 2026-09-30). `W`는 `ui.widgets`이며, `col` / `row` / `label`은 Storybook 내부의 작은 레이아웃 헬퍼입니다.

### SkeletonProps

`ui.widgets.Skeleton`

[src/ui/components/skeleton/mod.zig:35](https://github.com/version-next/zenit/blob/HEAD/src/ui/components/skeleton/mod.zig#L35)

```zig
fn Skeleton(props: SkeletonProps) SkeletonBuilder
```

| 필드 | 타입 | 기본값 | 설명 |
| --- | --- | --- | --- |
| `variant` | `SkeletonVariant` `.text` `.circular` `.rectangular` | `.text` | — |
| `width` | `f32` | `200` | — |
| `height` | `f32` | `16` | — |
| `animate` | `bool` | `true` | — |
| `count` | `u8` | `1` | — |
| `gap` | `f32` | `8` | — |

### \*Node

`ui.widgets.Skeleton`

mount는 `*Node`을(를) 직접 반환합니다. 부모 노드에 append하면 됩니다.
