MeldUI

Button

Displays a button or a component that looks like a button.

Variants

Sizes

With Icon

Props

PropTypeDefaultDescription
variant'default' | 'destructive' | 'success' | 'warning' | 'info' | 'outline' | 'secondary' | 'ghost' | 'link''default'The visual style variant of the button.
size'default' | 'sm' | 'lg' | 'icon' | 'icon-sm' | 'icon-lg''default'The size of the button.
asstring'button'The element or component to render as.
asChildbooleanfalseRender as child element, merging props onto the child.

Slots

SlotPropsDescription
default-Button content (text, icons, etc.)