> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CheckoutInputRule

> Swift Structure

**Structure**

The rule for the text inputs of the payment form.

```swift theme={null}
struct CheckoutInputRule
```

## Initializers

### init(borderRadius:font:colors:hover:focus:)

Creates an input rule.

```swift theme={null}
init(borderRadius: String? = nil, font: CheckoutFontStyle? = nil, colors: CheckoutColorStyle? = nil, hover: CheckoutStateStyle? = nil, focus: CheckoutStateStyle? = nil)
```

### init(from:)

Inherited from `Decodable.init(from:)`.

```swift theme={null}
init(from decoder: any Decoder) throws
```

## Instance Properties

| Property       | Type                  | Description                                           |
| -------------- | --------------------- | ----------------------------------------------------- |
| `borderRadius` | `String?`             | The CSS `border-radius` value, for example `"8px"`.   |
| `colors`       | `CheckoutColorStyle?` | The input colors in the rest state.                   |
| `focus`        | `CheckoutStateStyle?` | The input colors while the input has focus.           |
| `font`         | `CheckoutFontStyle?`  | The input font.                                       |
| `hover`        | `CheckoutStateStyle?` | The input colors while the pointer is over the input. |
