Components
Components

Button

Tag: <we-button>
Standard module: we_button

Renders a button with a label and visual variant. Its click is handled as a normal DOM click.

Features

  • Supports text, raised, and outline style categories.
  • Supports base, brand, success, and error tones.

Public parameters

JavaScript property HTML attribute Type Initial value Purpose
label label String "Button" Text label shown to the user.
variant variant String "outline:base" Style in the form category:tone; categories: text, raised, outline; tones: base, brand, success, error.

Public methods

No @apiFunction methods are declared.

Events

No directly constructed CustomEvent was found in this component source. Standard DOM events can still occur.

Source: working/environment_modules/standard/we_button/WebComponent/WeButton.js.

All components