# input-label

The input-label Claude Code rule sets how fields get their captions through the Input component. It applies to *.tsx files and disallows a separate caption above the field.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 1120 repo stars
- Author: rerun-build
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/rerun-build/rerun/tree/HEAD/apps/ui/.cursor/rules/input-label.mdc
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/input-label

## What it does

The rule directs the agent to pass a field caption through the `label` prop on `Input` from `@/components/ui/input`. It rules out adding a standalone `span`, `label`, or wrapper above the field.

The `label` prop accepts `required`, which hides the “Optional” badge, and `helperText` for a hint below the field. Its file pattern is `*.tsx`; the rule describes the component imported from that specific path.

## Install

### Cursor (native platform)

**Manually: put the files in place**
- File: `.cursor/rules/input-label.mdc` — Frontmatter: description, globs, alwaysApply

### Claude Code

**Manually: put the files in place**
- File: `.claude/rules/input-label.md` — The paths frontmatter field limits the files: move globs from the source into paths

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/input-label.instructions.md` — The applyTo field sets which files it applies to: move globs from the source into applyTo

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/input-label.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/input-label.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/rerun-build/rerun/tree/HEAD/apps/ui/.cursor/rules/input-label.mdc

## When to use it
- add a field caption through `label`
- remove a standalone caption above an input
- show a hint below a field with `helperText`
- hide the “Optional” badge on a required field

## Example prompts
- Add an Email field with `Input` and pass its caption through `label`.
- Fix the field in this TSX file by removing its separate caption and using `Input`'s `label` prop.

## Similar
- [roblox-input](https://affpapa.org/en/nevibecode/skills/roblox-input.md) — skill · 3100 installs
- [input-keyboard-mouse-touch](https://affpapa.org/en/nevibecode/skills/input-keyboard-mouse-touch.md) — skill · 1200 installs
- [godot-input-handling](https://affpapa.org/en/nevibecode/skills/godot-input-handling.md) — skill · 593 installs
- [typescript-refactor](https://affpapa.org/en/nevibecode/skills/typescript-refactor.md) — skill · 808 installs
- [react-pdf](https://affpapa.org/en/nevibecode/skills/molefrog-react-pdf.md) — skill · 778 installs
- [remotion-component-gen](https://affpapa.org/en/nevibecode/skills/remotion-component-gen.md) — skill · 172 installs

From the same set: [rerun-build/rerun](https://affpapa.org/en/nevibecode/by/rerun-build/rerun.md) — 25 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
