Skip to content

Button โ€‹

A clickable button or link element. Toggle Vue / CSS to switch the live demo and source together.

Basic โ€‹

Default colors across the palette.

Vue SFC

Sizes โ€‹

xs, sm, md, lg, xl.

Vue SFC

Variants โ€‹

Solid, outline, tonal and gradient.

Vue SFC

Shapes โ€‹

Square (default) and pill.

Vue SFC

Text with icon โ€‹

Icon slot with left or right position.

Vue SFC

States โ€‹

Disabled, loading and full width (width="100%").

Vue SFC

Badges โ€‹

Notification badge in four colors.

Vue SFC

Renders as <a> when href is set.

Vue SFC

Button type โ€‹

button, submit, reset.

Vue SFC

Icon buttons โ€‹

Icon-only buttons with optional badge or tooltip.

Vue SFC

FAB โ€‹

Floating Action Button styles.

Vue SFC

Customized โ€‹

Override per-element styling with the cssClass prop (Vue) or extra utility classes (CSS).

Vue SFC

Width & height โ€‹

Set width, height, min-width, max-width, min-height or max-height โ€” each takes a CSS string ("220px", "80%") or a number (px). Use width="100%" for a full-width button (replaces the old fullWidth).

Vue SFC

Types โ€‹

Importimport { ButtonProps } from 'mono-helper'
PropValueDefaultDescription
size'sm' | 'md' | 'lg' | 'xs' | 'xl''md'Visual size of the button.
color'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'teal' | 'purple' | 'dark' | 'light''primary'Color theme of the button.
variant'solid' | 'outline' | 'tonal' | 'gradient''solid'Visual style variant (solid, outline, tonal, gradient).
gradient'purple' | 'dark' | 'ocean' | 'mint' | 'sunset'โ€”Gradient preset applied when variant is gradient.
shape'square' | 'pill' | 'circle''square'Corner shape of the button (square, pill, circle).
disabledbooleanfalseDisables interaction and dims the button.
loadingbooleanfalseShows a loading state and blocks clicks.
widthstring | numberโ€”Explicit sizing. Each accepts a CSS length string (`"220px"`, `"80%"`) or a number (interpreted as px). Use `width="100%"` for a full-width button.
heightstring | numberโ€”โ€”
minWidthstring | numberโ€”โ€”
maxWidthstring | numberโ€”โ€”
minHeightstring | numberโ€”โ€”
maxHeightstring | numberโ€”โ€”
hrefstringโ€”Renders the button as an anchor with this URL.
targetstringโ€”Anchor target window when href is set.
type'button' | 'submit' | 'reset''button'Native button type attribute.
iconPosition'left' | 'right''left'Placement of the icon relative to the text.
badgestringโ€”Badge text shown on the button.
badgeColor'red' | 'green' | 'orange' | 'cobalt''red'Color of the badge.
iconOnlybooleanfalseRenders an icon-only button without text.
fabbooleanfalseStyles the button as a floating action button.
roundbooleanfalseApplies fully rounded corners.
circlebooleanfalseRenders the button as a circle.
glassbooleanfalseApplies a translucent glass effect.
tooltipstringโ€”Tooltip text shown on hover.
ariaLabelTextstringโ€”Accessible label text for screen readers.
cssClassButtonCssClass{}Per-element class overrides.