input-label — Claude Code rule: what it does and how to install
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.
AGPL-3.0 ★ 1,120 updated 2026-11-16
.cursor/rules/input-label.mdcWhat input-label 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.
What it helps with
- 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 for the agent
- Add an Email field with
Inputand pass its caption throughlabel. - Fix the field in this TSX file by removing its separate caption and using
Input'slabelprop.
How to install input-label
Manually: put the files in place
.cursor/rules/input-label.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.claude/rules/input-label.mdThe paths frontmatter field limits the files: move globs from the source into paths
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.github/instructions/input-label.instructions.mdThe applyTo field sets which files it applies to: move globs from the source into applyTo
Manually: put the files in place
.devin/rules/input-label.mdManually: put the files in place
.clinerules/input-label.mdStep by step, with commands for each platform: Cursor rules: .mdc files, four modes and what replaced .cursorrules
Questions about input-label
How do I install input-label in Claude Code?
Add the rule file at .claude/rules/input-label.md.
What does input-label do?
It tells the agent to put field captions in the Input component's label prop rather than adding a separate text element above the field.
Which files does input-label apply to?
The rule applies to *.tsx files.