# widgets-ui

widgets-ui — a skill for Claude Code, Cursor, Codex and other agents: builds React/Next.js components from JSON descriptions. The agent outputs a widget structure; the renderer assembles forms, cards and layouts in the project.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 239 installs · ★ 31 repo stars
- Author: 101-skills
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/101-skills/superpowers/tree/HEAD/ui/widgets-ui/SKILL.md
- Updated: 2026-08-31
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/widgets-ui

## What it does

The skill connects the widget library from `ui.inference.sh` via the shadcn registry — `npx shadcn@latest add https://ui.inference.sh/r/widgets.json` drops a `WidgetRenderer` component into the project.

Widgets are plain JSON objects. Layout nodes cover `row`, `col` and `box` with named gradients like `gradient-ocean` and `gradient-sunset`. Typography includes `title`, `text`, `caption` and `label`. Interactive elements are `button`, `input`, `textarea`, `select` and `checkbox`. Display nodes add `badge`, `icon`, `image` and `divider`. `WidgetRenderer` takes a widget tree and an `onAction` callback that receives the event type and form data — either `submit` or `click`.

The component targets the React/Next.js ecosystem, so projects outside it cannot use it.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill widgets-ui -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/widgets-ui/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/widgets-ui/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill widgets-ui -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/widgets-ui/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill widgets-ui -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/widgets-ui/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install 101-skills/superpowers ui/widgets-ui/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/widgets-ui/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill widgets-ui -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/101-skills/superpowers --path ui/widgets-ui
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/widgets-ui/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill widgets-ui -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/101-skills/superpowers/tree/HEAD/ui/widgets-ui/SKILL.md

## When to use it
- generate a contact form from a structured agent response
- render a flight card with icons and a gradient background
- compose a dynamic two-column layout from model output
- add a select or checkbox to an agent UI without writing markup by hand
- handle form submission through the `onAction` callback

## Example prompts
- Generate a registration form widget with `name`, `email` fields and a Submit button using `WidgetRenderer`
- Build a product card with a badge, image and Buy button as a JSON widget for `widgets-ui`
- Create a two-column layout with a heading using declarative `widgets-ui` JSON nodes

## Similar
- [workos-widgets](https://affpapa.org/en/nevibecode/skills/workos-widgets.md) — skill · 905 installs
- [makepad-2.0-widgets](https://affpapa.org/en/nevibecode/skills/makepad-20-widgets.md) — skill · ★ 754 repo stars
- [wear-widgets](https://affpapa.org/en/nevibecode/skills/wear-widgets.md) — skill · 544 installs
- [clerk-custom-ui](https://affpapa.org/en/nevibecode/skills/clerk-custom-ui.md) — skill · 58200 installs
- [ai-elements](https://affpapa.org/en/nevibecode/skills/vercel-ai-elements.md) — skill · 21000 installs
- [project-architecture](https://affpapa.org/en/nevibecode/skills/project-architecture.md) — skill · 5700 installs

From the same set: [101-skills/superpowers](https://affpapa.org/en/nevibecode/by/101-skills/superpowers.md) — 81 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
