Docs

Button

Styling API reference for the Button components.

CSS Selectors

The following CSS selectors can be used in stylesheets to target the various parts and states of the component.

Root element

vaadin-button

States

Disabled

vaadin-button[disabled]

Focused

vaadin-button[focused]

Keyboard focused

vaadin-button[focus-ring]

Hovered

vaadin-button:hover

Hover highlight

vaadin-button:hover::before

Parts

Label

vaadin-button::part(label)

Prefix (e.g. icon) wrapper

vaadin-button::part(prefix)

Suffix (e.g. icon) wrapper

vaadin-button::part(suffix)

Icon

vaadin-button > vaadin-icon

Style Variants

Primary

vaadin-button[theme~="primary"]

Secondary (default)

vaadin-button:not([theme])

Tertiary

vaadin-button[theme~="tertiary"]

Icon-only

vaadin-button[theme~="icon"]

Danger / Error

vaadin-button[theme~="error"]