Initializers
init(borderRadius:font:colors:hover:disabled:)
Creates a primary button rule.init(from:)
Inherited fromDecodable.init(from:).
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Swift Structure
struct CheckoutPrimaryButtonRule
init(borderRadius: String? = nil, font: CheckoutFontStyle? = nil, colors: CheckoutColorStyle? = nil, hover: CheckoutStateStyle? = nil, disabled: CheckoutStateStyle? = nil)
Decodable.init(from:).
init(from decoder: any Decoder) throws
| Property | Type | Description |
|---|---|---|
borderRadius | String? | The CSS border-radius value, for example "8px". |
colors | CheckoutColorStyle? | The button colors in the rest state. |
disabled | CheckoutStateStyle? | The button colors in the disabled state. |
font | CheckoutFontStyle? | The button font. |
hover | CheckoutStateStyle? | The button colors while the pointer is over the button. |
Was this page helpful?
