Icon button
Names a button that is only an icon once, so the one string is read aloud by a screen reader and shown on hover as the tooltip.
Examples
Liquidity terms in open-end real estate funds
Paper 1 of 3
Reading list
Papers you added this month.
- Flood exposure in coastal mortgagesOct 14
- Heat stress and regional outputOct 9
- Carbon pricing and bank lendingSep 30
| File | Actions |
|---|---|
| papers-retrieval.csv1,284 rows | |
| advisers-2026-q3.csv312 rows | |
| funds-by-domicile.csv96 rows |
Variants
Guests
States
Empty the list before deleting it.
Usage
Use it when
- An action is known by its glyph and sits where a label would crowd: a bar, a row, a card corner, a table cell.
- The same action repeats on every row or card, such as "More actions" or "Download".
Use something else when
- The action is read, not recognised, or it is the view's primary action. Use Button with a text label instead.
- The button stays pressed as a tool, such as bold. Use Toggle with
aria-labeland a Tooltip instead, or IconButton witharia-pressedwhen it is a per-item state such as a key shown in full. - The action is slow and must report itself. Use StateButton instead; a settling glyph has no label to hold its box.
- The press navigates. Use a link styled with
buttonVariants, or BackLink instead. - The press copies a value or saves a thing. Use CopyButton or SaveToggle instead.
Rules
General
Content
Avoid
Limits
Install
npx shadcn@latest add https://kaanarici.com/r/cobalt/icon-button.jsonimport { IconButton } from "@/components/cobalt/ui/icon-button"