## PaymentElement
Use the `PaymentElement` from `@stripe/react-stripe-js` to collect payment details for more than [40 payment methods](https://docs.stripe.com/docs/payments/payment-methods/integration-options.md) from around the globe. The component must be rendered inside an [Elements Provider](https://docs.stripe.com/js/react_stripe_js/elements/elements_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`
Options for creating the Payment Element.

- `layout`
Specify the layout for the Payment Element. If you only pass a layout type (`'accordion'` or `‘tabs’`) without any additional parameters, the Payment Element renders using that layout and the default values associated with it. An object can also be passed to specify the layout with additional configuration.

- `type`
Defines the layout to render the Payment Element.

- `defaultCollapsed`
Controls if the Payment Element renders in a collapsed state (where no payment method is selected by default). When you leave this `undefined`, Stripe renders the experience that it determines will have the best conversion.

- `radios`
Controls when to render each Payment Method with a radio input next to its logo. The radios visually indicate the current selection of the Payment Element. Defaults to `'auto'`.
    - `'always'` — Always show radio inputs.
    - `'never'` — Never show radio inputs.
    - `'if_multiple'` — Show radio inputs only when there are multiple payment methods available. When there is only one payment method, no radio input is displayed.
    - `'auto'` — Stripe determines the best experience to optimize conversion. _This property is only applicable to the `accordion` layout._

- `spacedAccordionItems`
When `true`, the Payment Methods render as standalone buttons with space in between them. _This property is only applicable to the `accordion` layout._

- `visibleAccordionItemsCount`
Sets the max number of Payment Methods visible before using the "More" button