Examples
Primary 40
Fieldset Disabled
V2 variants pick up the disabled treatment via a CSSdisabled: fallback, so buttons inside a <fieldset disabled> are dimmed even without the disabled prop.
V2 Matrix
Upsell
V2 Negative
Props
IconButton
A button containing only an icon. Use when an action can be represented by an icon alone (e.g. close, send). Always pair with anaria-label for accessibility.
Shape is size-driven for the standard variants, upsell and overlay: the 24 size is squared (rounded-xs), every larger size is circular. Bespoke variants (brand, contrast, messaging, navTray, stop, microphone) stay circular at all sizes. field is the exception that is never circular — it takes the inputs’ rounded-sm so it matches the fields it sits beside. Use it at 32, 40 or 48: those are the sizes Select offers, and the variant only earns its surface when it lines up with one.
Forces the dark-surface treatment regardless of theme. Only honoured on the
primary, secondary, tertiary, and outline variants."stop" | "error" | "brand" | "primary" | "secondary" | "tertiary" | "outline" | "white" | ...
default:"primary"
Visual style variant of the icon button.Full type:
"stop" | "error" | "brand" | "primary" | "secondary" | "tertiary" | "outline" | "white" | "tertiaryDestructive" | "contrast" | "overlay" | "black" | "upsell" | "messaging" | "navTray" | "microphone" | "field".Exported types
Also exported from@fanvue/ui: IconButtonProps, IconButtonSize, IconButtonVariant.
Setup: Installation · Theming