本文へ移動
cccskills
Vercel 公式無料GitHub で公開日本語紹介

json-render-shadcn

json-renderで使う画面部品を、36種類の標準部品から選んで組み込むスキル。フォームの入力検証や独自部品の追加も含め、Web画面の実装を支援します。

原文原文の説明を見る

Pre-built shadcn/ui components for json-render. Use when working with @json-render/shadcn, adding standard UI components to a catalog, or building web UIs with Radix UI + Tailwind CSS components.

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • カタログに標準UI部品を追加したいとき
  • 入力検証付きフォームを作りたいとき
  • 標準部品と独自部品の組み合わせ
  • サーバー側のプロンプト用部品定義

日本語での紹介

できること

json-renderの画面に、カード、ボタン、入力欄、表などの標準部品を組み込む作業を支援します。Radix UIとTailwind CSSを使った36種類の部品から必要なものを選び、部品の定義をまとめるカタログと、Reactの実装を登録するレジストリを対応させます。入力内容の検証や検証タイミングの設定、独自部品との併用も扱います。

こんなときに便利

json-renderでフォームやタブ付きのWeb画面を作るときに向いています。標準部品に独自の指標表示を加えたい場合や、サーバー側でプロンプト用の部品定義を用意したい場合にも役立ちます。

使い方の例

  • 「Card、Heading、Input、Buttonを使うカタログとレジストリを作って」
  • 「入力欄の検証を、フォーカスが外れたときに実行して」
  • 「標準部品と独自のMetricを組み合わせて」

注意点

アプリ側でTailwind CSSの設定が必要です。React実装と、Reactに依存しない/catalogでは読み込み先が異なります。部品は必要なものだけ明示的に選択します。実装には同梱のshadcn/ui部品が使われます。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(1)

  • SKILL.md6.3 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

@json-render/shadcn

Pre-built shadcn/ui component definitions and implementations for json-render. Provides 36 components built on Radix UI + Tailwind CSS.

Two Entry Points

Entry PointExportsUse For
@json-render/shadcn/catalogshadcnComponentDefinitionsCatalog schemas (no React dependency, safe for server)
@json-render/shadcnshadcnComponentsReact implementations

Usage Pattern

Pick the components you need from the standard definitions. Do not spread all definitions -- explicitly select what your app uses:

import { defineCatalog } from "@json-render/core";
import { schema } from "@json-render/react/schema";
import { shadcnComponentDefinitions } from "@json-render/shadcn/catalog";
import { defineRegistry } from "@json-render/react";
import { shadcnComponents } from "@json-render/shadcn";

// Catalog: pick definitions
const catalog = defineCatalog(schema, {
  components: {
    Card: shadcnComponentDefinitions.Card,
    Stack: shadcnComponentDefinitions.Stack,
    Heading: shadcnComponentDefinitions.Heading,
    Button: shadcnComponentDefinitions.Button,
    Input: shadcnComponentDefinitions.Input,
  },
  actions: {},
});

// Registry: pick matching implementations
const { registry } = defineRegistry(catalog, {
  components: {
    Card: shadcnComponents.Card,
    Stack: shadcnComponents.Stack,
    Heading: shadcnComponents.Heading,
    Button: shadcnComponents.Button,
    Input: shadcnComponents.Input,
  },
});

State actions (setState, pushState, removeState) are built into the React schema and handled by ActionProvider automatically. No need to declare them.

Extending with Custom Components

Add custom components alongside standard ones:

const catalog = defineCatalog(schema, {
  components: {
    // Standard
    Card: shadcnComponentDefinitions.Card,
    Stack: shadcnComponentDefinitions.Stack,

    // Custom
    Metric: {
      props: z.object({
        label: z.string(),
        value: z.string(),
        trend: z.enum(["up", "down", "neutral"]).nullable(),
      }),
      description: "KPI metric display",
    },
  },
  actions: {},
});

const { registry } = defineRegistry(catalog, {
  components: {
    Card: shadcnComponents.Card,
    Stack: shadcnComponents.Stack,
    Metric: ({ props }) => <div>{props.label}: {props.value}</div>,
  },
});

Available Components

Layout

  • Card - Container with optional title, description, maxWidth, centered
  • Stack - Flex container with direction, gap, align, justify
  • Grid - Grid layout with columns (number) and gap
  • Separator - Visual divider with orientation

Navigation

  • Tabs - Tabbed navigation with tabs array, defaultValue, value
  • Accordion - Collapsible sections with items array and type (single/multiple)
  • Collapsible - Single collapsible section with title
  • Pagination - Page navigation with totalPages and page

Overlay

  • Dialog - Modal dialog with title, description, openPath
  • Drawer - Bottom drawer with title, description, openPath
  • Tooltip - Hover tooltip with content and text
  • Popover - Click-triggered popover with trigger and content
  • DropdownMenu - Dropdown with label and items array

Content

  • Heading - Heading text with level (h1-h4)
  • Text - Paragraph with variant (body, caption, muted, lead, code)
  • Image - Image with alt, width, height
  • Avatar - User avatar with src, name, size
  • Badge - Status badge with text and variant (default, secondary, destructive, outline)
  • Alert - Alert banner with title, message, type (success, warning, info, error)
  • Carousel - Scrollable carousel with items array
  • Table - Data table with columns (string[]) and rows (string[][])

Feedback

  • Progress - Progress bar with value, max, label
  • Skeleton - Loading placeholder with width, height, rounded
  • Spinner - Loading spinner with size and label

Input

  • Button - Button with label, variant (primary, secondary, danger), disabled
  • Link - Anchor link with label and href
  • Input - Text input with label, name, type, placeholder, value, checks
  • Textarea - Multi-line input with label, name, placeholder, rows, value, checks
  • Select - Dropdown select with label, name, options (string[]), value, checks
  • Checkbox - Checkbox with label, name, checked, checks, validateOn
  • Radio - Radio group with label, name, options (string[]), value, checks, validateOn
  • Switch - Toggle switch with label, name, checked, checks, validateOn
  • Slider - Range slider with label, min, max, step, value
  • Toggle - Toggle button with label, pressed, variant
  • ToggleGroup - Group of toggles with items, type, value
  • ButtonGroup - Button group with buttons array and selected

Built-in Actions (from @json-render/react)

These are built into the React schema and handled by ActionProvider automatically. They appear in prompts without needing to be declared in the catalog.

  • setState - Set a value at a state path ({ statePath, value })
  • pushState - Push a value onto an array ({ statePath, value, clearStatePath? })
  • removeState - Remove an array item by index ({ statePath, index })
  • validateForm - Validate all fields, write { valid, errors } to state ({ statePath? })

Validation Timing (validateOn)

All form components support validateOn to control when validation runs:

  • "change" — validate on every input change (default for Select, Checkbox, Radio, Switch)
  • "blur" — validate when field loses focus (default for Input, Textarea)
  • "submit" — validate only on form submission

Important Notes

  • The /catalog entry point has no React dependency -- use it for server-side prompt generation
  • Components use Tailwind CSS classes -- your app must have Tailwind configured
  • Component implementations use bundled shadcn/ui primitives (not your app's components/ui/)
  • All form inputs support checks for validation (type + message pairs) and validateOn for timing
  • Events: inputs emit change/submit/focus/blur; buttons emit press; selects emit change/select

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

codegen

Vercel 公式無料概要あり

json-renderの画面仕様からコードを書き出す仕組みを作るスキル。画面構造の読み取り、使用部品や状態参照の収集、JSX向けの属性の文字列化を支援します。

  • Next.jsやRemix向けの出力処理作成
  • 画面仕様の部品や操作を一覧にしたいとき
  • 属性の値をJSX形式に変換したいとき
vercel-labs/json-render1.9万2026年10月24日 更新

core

Vercel 公式無料概要あり

AIが生成する画面や動画のJSON定義に、構造のルールと部品カタログを用意するスキル。プロンプト作成、逐次生成の処理、状態連携、定義の検証・修正を支援します。

  • AI画面生成で使う部品を定義したいとき
  • JSON生成・編集用プロンプトの作成
  • AI応答から画面定義を逐次組み立てたいとき
vercel-labs/json-render1.9万2026年10月24日 更新

devtools

Vercel 公式無料概要あり

json-renderの画面に検査パネルを追加し、画面仕様や実行中の状態、操作履歴、生成データの流れを確認するスキル。表示要素から仕様の該当箇所も探せます。

  • 要素が表示されない原因を調べたいとき
  • 実行中の状態の確認と編集
  • 操作処理の結果やエラーの確認
vercel-labs/json-render1.9万2026年10月24日 更新

devtools-react

Vercel 公式無料概要あり

Reactのjson-renderアプリに検査パネルを追加し、画面定義・状態・操作履歴の確認や、コードからのパネル操作とイベント記録の設定を支援します。

  • Reactアプリに検査パネルを追加したいとき
  • 画面定義・状態・操作履歴を確認したいとき
  • Reactのコードからパネルを開閉
vercel-labs/json-render1.9万2026年10月24日 更新

devtools-solid

Vercel 公式無料概要あり

SolidJSのjson-renderアプリに開発用の検査パネルを組み込みます。画面仕様や状態の確認・編集、操作やストリームの履歴を調べるための設定を支援します。

  • SolidJSに検査パネルを追加したいとき
  • 画面仕様とアプリの状態を調べたいとき
  • 操作やストリームの履歴を確認したいとき
vercel-labs/json-render1.9万2026年10月24日 更新

devtools-svelte

Vercel 公式無料概要あり

Svelte 5のjson-renderアプリに開発用パネルを導入し、画面定義の検査や状態編集、操作履歴の確認を進めるスキル。設定や不具合の調査にも使えます。

  • Svelteに開発用パネルを追加したいとき
  • 画面定義の検査と状態編集
  • 操作やストリームの履歴確認
vercel-labs/json-render1.9万2026年10月24日 更新

vercel-labs のスキルをすべて見る

このスキルの問題を報告する