Skip to main content
rule CX Codex

no-icons-in-buttons — Claude Code rule: install

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.

AGPL-3.0 ★ 1,120 updated 2026-11-16

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

What no-icons-in-buttons does

The rule tells the agent to leave icons out of buttons unless the user specifically requests one. Button labels stay as text by default.

It covers every button component, including Shadcn UI Button and custom implementations. In Claude Code, place the rule file at .claude/rules/no-icons-in-buttons.md.

What it helps with

  • remove an icon from a button
  • keep button labels text-only
  • apply the same icon rule to Shadcn UI Button and custom buttons

Example prompts for the agent

  • Create an “Add item” button without an icon.
  • Remove the icon from the save button.
  • Make this action a text-only button.

How to install no-icons-in-buttons

Manually: put the files in place

.cursor/rules/no-icons-in-buttons.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 no-icons-in-buttons

How do I install no-icons-in-buttons in Claude Code?

Add the rule file at .claude/rules/no-icons-in-buttons.md.

What does no-icons-in-buttons do?

It tells the agent to use text-only buttons unless the user explicitly requests an icon.

Which buttons does no-icons-in-buttons cover?

It applies to all button components, including Shadcn UI Button and custom buttons.

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set25

The whole set →
update-docs The update-docs Claude Code skill checks Rerun’s documentation against code changes. It runs before work is marked done or a pull request is opened for changes to specified project areas, and on direct requests to update the docs. CX Codex +1 ★ 1,120repo stars menu-item-icons The menu-item-icons Claude Code skill helps decide which menu items need icons. It applies when creating or redesigning a DropdownMenu or ContextMenu, and when reviewing a menu where every item has an icon. CX Codex +1 ★ 1,120repo stars create-agent-template The create-agent-template Claude Code skill turns an agent idea into a Rerun template draft. It interviews about the task, builds the agent, then tests it against challenging cases. CX Codex +1 ★ 1,120repo stars 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 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 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. 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

Project sponsors

Companies that keep this analytics open