Skip to content

Button

Overview

A button control built on Reka UI's Primitive. Its look resolves on two axes, tone (color) and emphasis (structure). A bare button rests at neutral fill; the primary fill is opt-in with tone="primary". Size styles also resolve via the theme system.

Theme entry: Button

Props

NameTypeRequiredDefaultDescription
themeOverrideString|Object|ArraynullA partial theme object merged with the component's default theme; accepts a class string, class array, or theme object.
tonestringundefinedColor axis.
emphasisstringundefinedStructure axis.
sizestringundefinedSize axis.
classimport('vue').HTMLAttributes['class']undefinedAdditional CSS classes to apply to the root element.
asstring|object"button"The element or component to render as.
asChildbooleanfalseWhen true, merges props onto the child element instead of rendering a wrapper.

Slots

default

Slot.

Source

client/lib/controls/button/Button.vue

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2