---
title: "Skeleton コンポーネント — zenit Zig UI"
description: "コンテンツの読み込み中に表示するプレースホルダーの骨組み。text / rect / circle のバリアント、角丸、shimmer はテーマに沿った見た目になります。"
url: https://zenit.z.express/ja/components/skeleton
language: ja
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_ko: https://zenit.z.express/ko/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 してください。
