<!--
{
  "availability" : [
    "tvOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/CardButtonStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15CardButtonStyleV"
  },
  "title" : "CardButtonStyle"
}
-->

# CardButtonStyle

A button style that doesn’t pad the content, and applies a motion effect
when a button has focus.

```
nonisolated struct CardButtonStyle
```

## Overview

You can also use [`card`](/documentation/SwiftUI/PrimitiveButtonStyle/card) to construct this style.

## Topics

### Creating the button style

[`init()`](/documentation/SwiftUI/CardButtonStyle/init())

Creates a style that doesn’t pad a button’s content and applies a motion
effect to a focused button.

### Supporting types

[`makeBody(configuration:)`](/documentation/SwiftUI/CardButtonStyle/makeBody(configuration:))

Creates a view that represents the body of a button.

## See Also

  <doc://com.apple.documentation/documentation/TVUIKit/TVCardView>

## Relationships

### Conforms To

[`PrimitiveButtonStyle`](/documentation/SwiftUI/PrimitiveButtonStyle)

---

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)