Skip to content

Button

The Button component renders either a <button> or an <a> element styled with Bulma’s button classes. Pass href to render a link.

<Button>Default</Button>
<Button color="primary">Primary</Button>
<Button color="link">Link</Button>
<Button color="info">Info</Button>
<Button color="success">Success</Button>
<Button color="warning">Warning</Button>
<Button color="danger">Danger</Button>
<Button size="small">Small</Button>
<Button>Normal</Button>
<Button size="large">Large</Button>
<Button color="primary" outlined>Outlined</Button>
<Button color="primary" light>Light</Button>
<Button color="info" fullwidth>Full width</Button>
<Button color="primary" disabled>Disabled</Button>
<Button href="https://bulma.io" target="_blank" rel="noopener" color="link">
Open Bulma docs
</Button>
<Button type="submit" color="success">Save</Button>
PropTypeDefaultDescription
color"primary" | "danger" | "warning" | "info" | "success" | "link" | "light" | "white"Bulma color modifier.
size"small" | "large"Size modifier.
fullwidthbooleanStretches to full container width.
outlinedbooleanOutlined (transparent background) style.
lightbooleanLight variant.
disabledbooleanDisables the button. Only valid without href.
type"button" | "submit" | "reset""button"Button type. Only valid without href.
formstringAssociates with a <form> by id. Only without href.
hrefstringRenders as <a> when provided.
targetstringLink target. Only valid with href.
relstringLink rel. Only valid with href.
titlestringTooltip title.
idstringElement id.
classstringExtra CSS classes.