Components · Actions
A square button designed to hold a single icon, with an accessible label.
import { Icon Button } from '@nexub/react';| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| variant | 'ghost' | 'solid' | 'outline' | 'subtle' | 'ghost' | — | Visual style of the icon button. |
| size | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'md' | — | Controls button dimensions. |
| disabled | boolean | — | — | Disables the button. |
| loading | boolean | — | — | Shows a spinner and disables interaction. |
| asChild | boolean | — | — | Merges props onto the immediate child element (Radix Slot). |