Skip to main content
rule CX Codex

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

Install into Cursor · Manually: put the files in place All methods and platforms ↓
.cursor/rules/input-label.mdc
Open on GitHub

What 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 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.

How to install input-label

Manually: put the files in place

.cursor/rules/input-label.mdc

Frontmatter: description, globs, alwaysApply

Step 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.

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set25

The whole set →
supabase This Claude Code rule sets how the agent accesses a Supabase database. It requires using @src/app/supabase/supabase-helpers.ts instead of querying tables directly. CX Codex +1 ★ 1,120repo stars no-icons-in-buttons no-icons-in-buttons — a Claude Code rule that keeps button content text-only by default. The agent adds an icon only when the user explicitly asks for one. CX Codex +1 ★ 1,120repo stars english-only The english-only Claude Code rule sets English as the language for interface copy and labels. It applies across project files. CX Codex +1 ★ 1,120repo stars server-actions This Claude Code rule guides the choice between Server Actions and API routes for reading or changing data. It applies when an agent writes server-side application logic. CX Codex +1 ★ 1,120repo stars supabase-typed-mutations The supabase-typed-mutations Claude Code rule adds Database types to Supabase insert, update, and upsert calls. It applies while an agent works with these mutations. CX Codex +1 ★ 1,120repo stars use-shadcn This rule for Claude Code, Codex, and Cursor guides agents to reuse shadcn/ui components. When building UI, it directs them to look for existing project components first. CX Codex +1 ★ 1,120repo stars one-component-per-file The one-component-per-file Claude Code rule keeps each React component in its own file. It applies to *.tsx files. CX Codex +1 ★ 1,120repo stars realtime This Claude Code rule sets the pattern for Supabase Realtime subscriptions. It directs component code to useRealtimeSubscription instead of calling supabase.channel() directly. CX Codex +1 ★ 1,120repo stars

Project sponsors

Companies that keep this analytics open