## LinkAuthenticationElement Use the `LinkAuthenticationElement` from `@stripe/react-stripe-js` to collect email addresses and allow users to log into Link on your checkout page. The component must be rendered inside an [Elements Provider](/js/react_stripe_js/elements/elements_provider.md). ### Props - `id` (string) Sets the DOM `id` attribute on the rendered Element container. Use this to target the Element for styling or testing. - `className` (string) Applies custom CSS classes to the Element container. - `options` (object) Options for creating the Link Authentication Element. - `defaultValues` (object) Provide the initial contact information that will be displayed in the Link Authentication Element. The form will render with empty fields if not provided. - `email` (string) - `onChange` (function) Callback called when any value in the [change event payload](/js/element/events/on_change?type=linkAuthenticationElement.md#element_on_change-handler) changes. - `onReady` (function) Callback called once the Element is fully rendered. Recieves the [ready event payload](/js/element/events/on_ready.md#element_on_ready-handler). - `onBlur` (function) Callback called when the Element loses focus. - `onFocus` (function) Callback called when the Element receives focus. - `onEscape` (function) Callback called when the escape key is pressed within the Element. - `onLoaderStart` (function) Callback called right before Stripe displays the Element skeleton loader. Receives the Element instance as its only argument. - `onLoadError` (function) Callback called when the Element fails to load. ### Render LinkAuthenticationElement ```jsx import React from 'react'; import {Elements, LinkAuthenticationElement} from '@stripe/react-stripe-js'; import {loadStripe} from '@stripe/stripe-js'; const stripePromise = loadStripe('{TEST_PUBLISHABLE_KEY}'); export const App = ({clientSecret}) => ( ); ```