IconButton
Icon button renders an icon within in a button
Name@spark-ui/icon-button
Version2.0.21
LicenseMIT
Install#
| Attribute | Type | Description | Default |
| aria-label* | string | Defines a string value that labels the current element. | null |
| design | "filled" | "outlined" | "tinted" | "ghost" | "contrast" | - | filled |
| disabled | boolean | - | {"value":false} |
| intent | "main" | "support" | "accent" | "basic" | "success" | "alert" | "danger" | "info" | "neutral" | "surface" | - | main |
| size | "sm" | "md" | "lg" | - | md |
| shape | "rounded" | "square" | "pill" | - | rounded |
| asChild | boolean | Change the component to the HTML tag or custom component of the only child. | null |
| isLoading | boolean | Display a spinner to indicate to the user that the button is loading something after they interacted with it. | null |
| loadingLabel | string | If your loading state should only display a spinner, it's better to specify a label for it (a11y). | null |
| spinnerPlacement | "left" | "right" | - | null |