variant- Type
"primary" | "surface" | "secondary"- Default
"primary"- Description
- Semantic styling variants.
Search for a command to run...
Components / Actions
மிதக்கும் செயல் பொத்தான்
FAB represents the primary, most common action on a screen. It floats above other content, anchoring the screen's main workflow.
திரையின் மிக முக்கியமான முதன்மைச் செயலைக் குறிக்கும் மிதக்கும் பொத்தான்.
FABs are available in small (40px), standard (56px), large (96px), and extended (auto-width with text) forms.
Three semantic color variants: primary (brand), secondary (subtle), and surface (outlined card).
Disabled FABs are visually muted and unclickable. Use sparingly — prefer hiding the FAB entirely when the action is unavailable.
3 parts documented for implementation and review.
<button>Slightly rounded-md shape with elevation levels shadow-md/shadow-lg. Mapped to state overlay parameters for focus ring and active transition behaviors.
An icon clarifying the primary action, scaled to the containing FAB size (20px, 24px, 36px). Wrapped in aria-hidden span so assistive tech reads the aria-label instead.
Text description rendered on extended FABs. Fully supports Tamil script with proper vertical margin padding to avoid line clipping.
variant"primary" | "surface" | "secondary""primary"size"small" | "default" | "large" | "extended""default"iconReact.ReactNodearia-labelstringdisabledbooleanfalse| Prop | Type | Default | Description |
|---|---|---|---|
variant | "primary" | "surface" | "secondary" | "primary" | Semantic styling variants. |
size | "small" | "default" | "large" | "extended" | "default" | Dimensions and text layouts. |
icon | React.ReactNode | - | Standard vector icon element. |
aria-label | string | - | Required for icon-only sizes. Provides accessible name for screen readers. |
disabled | boolean | false | Disables the FAB with muted styling. |
pb-24) so the floating action doesn't obscure grid cells or important items.aria-label describing the action.<button> — focusable and activatable with Enter and Space.aria-label to provide an accessible name. The icon is marked aria-hidden to avoid redundant announcements.disabled attribute, removing the FAB from tab order automatically.ring-2 ring-ring ring-offset-2 for clear keyboard-navigation visibility.aria-label needed.Use FAB to create a new item, send a message, or compile a report on a primary content dashboard.
புதிய பதிவு எழுத அல்லது செய்தி அனுப்ப மிதக்கும் பொத்தானைப் பயன்படுத்துங்கள்.
Multiple FABs create visual noise and destroy action hierarchy. Use standard buttons for secondary options.
ஒரே திரையில் பல மிதக்கும் பொத்தான்கள் வைப்பது பயனரை குழப்பமடையச் செய்யும்.
On tablet and desktop screens, use extended FABs with text labels so the action is immediately obvious without needing to hover.
மாத்திரை மற்றும் கணினி திரைகளில் உரையுடன் கூடிய FAB பயன்படுத்தி செயலை உடனடியாகத் தெளிவுபடுத்தவும்.
Destructive actions like delete or remove should never be the primary screen action. Use a destructive Button inside a confirmation dialog instead.
நீக்குதல் போன்ற அழிவுகரமான செயல்களுக்கு FAB பயன்படுத்த வேண்டாம் — உறுதிப்படுத்தல் உரையாடலில் அழிவுகரமான பொத்தானைப் பயன்படுத்தவும்.