activation-emits-activate
Verified by the reference semantics
Configuration
- Properties
label = "Continue"
Inputs
activation
Expectations
Events emitted: activate
Primary, secondary or text action with an optional leading icon.
buttonbutton.dsf:7:1Default configuration: every property, variant and state at its default, every context axis at its default.
Placeholder values for required properties: label = "Label"
| Name | Type | Default | Binding | Description |
|---|---|---|---|---|
label | string | required | input | Visible text. Also the accessible name. |
disabled | boolean | false | input | — |
| Name | Values | Default |
|---|---|---|
appearance | primary, secondary, text | primary |
| Name | Type | Default | Interaction |
|---|---|---|---|
hovered | boolean | false | hover |
pressed | boolean | false | press |
focus_visible | boolean | false | focus_visible |
| Name | Cardinality | Accepts |
|---|---|---|
leading | optional | icon |
| Name | Payload |
|---|---|
activate | — |
| Attribute | Value |
|---|---|
role | button |
disabled | prop.disabled |
name | prop.label |
root stack
leading slotlabel textVerified by the reference semantics
label = "Continue"activationEvents emitted: activate
Verified by the reference semantics
label = "OK"Present: root, label
| Node | Attribute | Expected value |
|---|---|---|
root | min_width | dp(144) |
root | min_height | dp(51) |
root | gap | dp(8) |
root | radius | dp(0) |
root | padding | { top = dp(13), end = dp(32), bottom = dp(12), start = dp(32) } |
label | typography | { font_family = ["Audi Type Wide", "Verdana", "sans-serif"], font_size = dp(15), font_weight = 400, letter_spacing = dp(0), line_height = 1.6 } |
Verified by the reference semantics
disabled = truelabel = "Continue"activationactivationEvents emitted: none
Verified by the reference semantics
disabled = truelabel = "Continue"focus_visible = truehovered = truepressed = trueNode values
| Node | Attribute | Expected value |
|---|---|---|
root | opacity | 0.3 |
root | background | hex("#000000") |
root | foreground | color("srgb", [1, 1, 1], 0.5) |
root | shadows | token.shadow.none |
Verified by the reference semantics
label = "Continue"focus_visible = trueNode values
| Node | Attribute | Expected value |
|---|---|---|
root | shadows | [{ blur = dp(3), color = color("srgb", [0, 0, 0], 0.1), offset_x = dp(0), offset_y = dp(0), spread = dp(3) }] |
Verified by the reference semantics
label = "Continue"focus_visible = truehovered = trueNode values
| Node | Attribute | Expected value |
|---|---|---|
root | background | hex("#333333") |
root | shadows | token.shadow.none |
Verified by the reference semantics
label = "Continue"theme = "dark"Node values
| Node | Attribute | Expected value |
|---|---|---|
root | background | hex("#ffffff") |
root | foreground | hex("#000000") |
Verified by the reference semantics
label = "Continue"hovered = trueNode values
| Node | Attribute | Expected value |
|---|---|---|
root | background | hex("#333333") |
Verified by the reference semantics
label = "Continue"Node values
| Node | Attribute | Expected value |
|---|---|---|
root | background | hex("#000000") |
root | foreground | hex("#ffffff") |
Verified by the reference semantics
label = "Continue"pressed = truetheme = "dark"Node values
| Node | Attribute | Expected value |
|---|---|---|
root | background | hex("#e5e5e5") |
Verified by the reference semantics
label = "Continue"reduced_motion = trueNode values
| Node | Attribute | Expected value |
|---|---|---|
root | transitions | { background = token.motion.transition.instant, border = token.motion.transition.instant, foreground = token.motion.transition.instant, opacity = token.motion.transition.instant, shadows = token.motion.transition.instant } |
Verified by the reference semantics
label = "Back"appearance = "secondary"theme = "dark"Node values
| Node | Attribute | Expected value |
|---|---|---|
root | foreground | hex("#ffffff") |
root | border | { color = hex("#ffffff"), style = "solid", width = dp(1) } |
Verified by the reference semantics
label = "Back"appearance = "secondary"hovered = truetheme = "dark"Node values
| Node | Attribute | Expected value |
|---|---|---|
root | foreground | hex("#e5e5e5") |
root | border | { color = hex("#cccccc"), style = "solid", width = dp(1) } |
Verified by the reference semantics
label = "Back"appearance = "secondary"hovered = trueNode values
| Node | Attribute | Expected value |
|---|---|---|
root | foreground | hex("#4c4c4c") |
root | border | { color = hex("#808080"), style = "solid", width = dp(1) } |
Verified by the reference semantics
label = "Back"appearance = "secondary"Node values
| Node | Attribute | Expected value |
|---|---|---|
root | background | color("srgb", [0, 0, 0], 0) |
root | foreground | hex("#000000") |
root | border | { color = hex("#000000"), style = "solid", width = dp(1) } |
Verified by the reference semantics
label = "Details"appearance = "text"theme = "dark"Node values
| Node | Attribute | Expected value |
|---|---|---|
root | foreground | hex("#ffffff") |
root | border | { color = color("srgb", [0, 0, 0], 0), style = "solid", width = dp(1) } |
Verified by the reference semantics
label = "Details"appearance = "text"hovered = trueNode values
| Node | Attribute | Expected value |
|---|---|---|
root | min_width | dp(0) |
root | background | color("srgb", [0, 0, 0], 0) |
root | foreground | hex("#4c4c4c") |
root | padding | { top = dp(13), end = dp(0), bottom = dp(12), start = dp(0) } |