<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ButtonStyleConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI24ButtonStyleConfigurationV"
  },
  "title" : "ButtonStyleConfiguration"
}
-->

# ButtonStyleConfiguration

The properties of a button.

```
struct ButtonStyleConfiguration
```

## Topics

### Configuring a button’s label

[`label`](/documentation/SwiftUI/ButtonStyleConfiguration/label-swift.property)

A view that describes the effect of pressing the button.

[`ButtonStyleConfiguration.Label`](/documentation/SwiftUI/ButtonStyleConfiguration/Label-swift.struct)

A type-erased label of a button.

### Configuring a button’s interaction state

[`isPressed`](/documentation/SwiftUI/ButtonStyleConfiguration/isPressed)

A Boolean that indicates whether the user is currently pressing the
button.

### Defining the button’s purpose

[`role`](/documentation/SwiftUI/ButtonStyleConfiguration/role)

An optional semantic role that describes the button’s purpose.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)