iconreq- Type
LucideIcon- Default
- -
- Description
- Rendered glyph inside the round/box action outline.
Search for a command to run...
Components / Actions
சின்ன பொத்தான்
Icon buttons are square buttons that contain only an icon. Always pair them with a tooltip so the action is accessible to keyboard and screen reader users.
சின்ன பொத்தான்கள் ஒரு சின்னம் மட்டும் கொண்ட சதுர பொத்தான்கள். எப்போதும் குறிப்பு நுனியுடன் இணைக்கவும்.
3 parts documented for implementation and review.
<button>Square button container with equal width and height (size-9 default = 36x36px). Uses rounded-md with the same variant system as Button. Must include aria-label since there is no visible text.
svgCentered Lucide SVG icon. Default h-4 w-4 (16px), sm: h-3 w-3 (12px), lg: h-5 w-5 (20px). The icon IS the entire button content — must be semantically meaningful.
Required aria-label string providing accessible name for screen readers and keyboard users. Should describe the action, not the icon — use Dismiss not X, Save not Floppy disk.
aria-label in Tamil (or Tamil/English) to every icon button.Tooltip — icon-only buttons are invisible to sighted users who don't hover.aria-label and TooltipContent text must match.iconreqLucideIconvariant"default" | "outline" | "ghost""default"| Prop | Type | Default | Description |
|---|---|---|---|
iconreq | LucideIcon | - | Rendered glyph inside the round/box action outline. |
variant | "default" | "outline" | "ghost" | "default" | Border style. |
Screen reader users and keyboard navigators rely on aria-label to understand what the button does.
திரை வாசகர் பயனர்கள் பொத்தான் என்ன செய்கிறது என்று புரிய aria-label தேவை.
Primary calls-to-action must have visible text labels — icons alone are ambiguous and reduce discoverability.
முதன்மை செயல் பொத்தான்களுக்கு தெரியும் உரை லேபிள் வேண்டும் — சின்னம் மட்டும் பொருளை தெளிவாக காட்டாது.
The size='icon' variant ensures equal width and height so the icon is properly centered within the button.
size='icon' சம அகலம் மற்றும் உயரத்தை உறுதி செய்கிறது, சின்னம் சரியாக மையப்படுத்தப்படும்.
An icon button should contain exactly one icon — multiple icons create layout issues and confuse the action.
ஒரு சின்ன பொத்தானில் ஒரு சின்னம் மட்டுமே — இரண்டு சின்னங்கள் வடிவமைப்பை சிதைக்கும்.