Examples
Primary
Brand Loading
Brand All Sizes
With Left Icon
All Styles V2
Props
Button
A versatile button component with multiple visual variants, sizes, icon slots, loading state, and optional pricing display. Passnegative when rendering on an inverted surface to opt into the inverted treatment for primary, secondary, tertiary, outline and brand variants.
The brand variant is the Figma “Upsell” button: a green radial fill with a green glow and a highlight that circles the rim once. With negative it takes the other theme’s glow, made for the inverted surface. The highlight holds still when the user prefers reduced motion. Keep it for upgrade and purchase prompts. The fill is a gradient, so a bg-* class sits under it: recolour it through --fv-upsell-end, or pair the class with bg-none.
The tertiaryDestructive variant is the Figma “Tertiary Error” button: use it for destructive actions that shouldn’t shout (Revoke, Remove, Cancel invite, Delete the content). Use destructive for a big, final delete.
The ai variant ships with the AI sparkle icon baked in (locked at 16px regardless of button size); pass leftIcon to override the default sparkle.
Forces the dark-surface treatment regardless of theme. Only honored on
primary, secondary, tertiary, and outline variants; ignored on all others. Use when placing the button on a dark background in a light theme (e.g. an inverted hero or modal).Visual style variant of the button.Full type:
"link" | "text" | "brand" | "primary" | "secondary" | "tertiary" | "outline" | "destructive" | "secondaryDestructive" | "white" | "alwaysBlack" | "ai" | "tertiaryDestructive".Exported types
Also exported from@fanvue/ui: ButtonProps, ButtonSize, ButtonVariant.
Setup: Installation · Theming