Skip to content

Button

<vox-button> renders an accessible button, or a link styled as a button when href is set.

Variants

BrandAltDangerGhost
html
<vox-button variant="brand">Brand</vox-button>
<vox-button variant="alt">Alt</vox-button>
<vox-button variant="danger">Danger</vox-button>
<vox-button variant="ghost">Ghost</vox-button>

Sizes

SmallMediumLarge
html
<vox-button size="sm">Small</vox-button>
<vox-button size="md">Medium</vox-button>
<vox-button size="lg">Large</vox-button>
Visit Vox Pupuli
html
<vox-button href="https://voxpupuli.org" target="_blank">Visit Vox Pupuli</vox-button>

Disabled

Disabled
html
<vox-button disabled>Disabled</vox-button>

API

AttributeTypeDefaultDescription
variantbrand | alt | danger | ghostbrandVisual style
sizesm | md | lgmdButton size
hrefstringRender as a link
targetstringLink target (adds rel="noreferrer" for _blank)
typebutton | submit | resetbuttonButton type
disabledbooleanfalseDisable the button

Released under the Apache-2.0 License.