Skip to content
nexubDesign System
v2.4.0

Components · Actions

Icon Button

StableSince v0.0.1

A square button designed to hold a single icon, with an accessible label.

import { IconButton } from '@nexub/react';

Examples

Default

Variants

Props

Props
PropTypeDefaultDescription
variant'ghost' | 'solid' | 'outline' | 'subtle''ghost'Visual style of the icon button.
size'xs' | 'sm' | 'md' | 'lg' | 'xl''md'Controls button dimensions.
disabledboolean—Disables the button.
loadingboolean—Shows a spinner and disables interaction.
asChildboolean—Merges props onto the immediate child element (Radix Slot).