{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "icon-button", "type": "registry:ui", "title": "Icon button", "description": "A pressable cap with only a glyph: tool (a graphite cap that latches with a green LED), ghost (flat, round) and mini (inside a chip).", "dependencies": [], "registryDependencies": [ "https://metalui.dev/r/tokens.json" ], "files": [ { "path": "packages/metalui/src/components/icon-button/icon-button.tsx", "type": "registry:ui", "target": "components/metalui/components/icon-button/icon-button.tsx", "content": "'use client';\n\nimport * as React from 'react';\n\n/* ICON BUTTON: a pressable cap with only a glyph.\n * tool a graphite cap (38, radius 15); pressed sinks 1 into a dark well; latched (pressed={true})\n * stays down with a 4 pt green LED top right\n * ghost a flat round button (28) that fills on hover\n * mini a small flat pill (18 × 16) inside a chip, with a 24 × 24 hit area (WCAG 2.5.8); `accept` greens its glyph on hover\n * It renders a \n );\n});\n" } ], "docs": "Agent guide: https://metalui.dev/r/icon-button.md. SwiftUI: MetalIconButton in the MetalUI Swift package." }