## BillingAddressElement
Use the `BillingAddressElement` from `@stripe/react-stripe-js/checkout` to render and update the billing address on the current [Checkout Session](https://docs.stripe.com/api/checkout/sessions/object.md). The component must be rendered inside a [CheckoutElementsProvider](https://docs.stripe.com/js/react_stripe_js/checkout/checkout_provider.md).

### Props

- `id`
Sets the DOM `id` attribute on the rendered Element container. Use this to target the Element for styling or testing.

- `className`
Applies custom CSS classes to the Element container.

- `options`
Billing Address Element initialization options.

- `contacts`
An array of objects that can be displayed as saved addresses in the Billing Address Element. The first contact is automatically selected.

- `name`
The name of the contact. This might be a person, or a business name.

- `address`
The address of the contact.

- `line1`

- `line2`

- `city`
The name of a city, town, village, etc.

- `state`
The most coarse subdivision of a country. Depending on the country, this might correspond to a state, a province, an oblast, a prefecture, or something else along these lines.

- `postal_code`
The postal code or ZIP code, also known as PIN code in India.

- `country`
Two-letter country code, capitalized. Valid two-letter country codes are specified by ISO3166 alpha-2.

- `phone`
The phone number of the contact.

- `display`
You can customize how certain fields are displayed.

- `name`
By default, the Billing Address Element displays a full name field. Specify 'split' to display a first name field and a last name field. Specify 'organization' to display an organization field.

- `onChange`
Callback called when any value in the [change event payload](https://docs.stripe.com/js/element/events/on_change?type=addressElement.md#element_on_change-handler) changes.

- `onReady`
Callback called once the Element is fully rendered. Recieves the [ready event payload](https://docs.stripe.com/js/element/events/on_ready.md#element_on_ready-handler).

- `onBlur`
Callback called when the Element loses focus.

- `onFocus`
Callback called when the Element receives focus.

- `onEscape`
Callback called when the escape key is pressed within the Element.