New Ory Agent Security is now live! Claim your complimentary test drive. Get Started!

Skip to main content

<DefaultButtonSocial />

function DefaultButtonSocial(props: {
attributes: UiNodeInputAttributes
buttonProps: OryNodeButtonButtonProps
isLastUsed?: boolean
isSubmitting: boolean
logos?: Record<string, ElementType>
node: UiNodeInput
provider: string
}): Element

The default implementation of a social button for Ory SSO. It renders a button with a logo, an optional label, and a "Last used" badge when isLastUsed is true.

Parameters​

ParameterTypeDescription
props{ attributes: UiNodeInputAttributes; buttonProps: OryNodeButtonButtonProps; isLastUsed?: boolean; isSubmitting: boolean; logos?: Record<string, ElementType>; node: UiNodeInput; provider: string; }The props for the DefaultButtonSocial component.
props.attributesUiNodeInputAttributesDeprecated Use node.attributes instead.
props.buttonPropsOryNodeButtonButtonProps-
props.isLastUsed?booleanWhether the user chose this provider last time on this device. Ory Elements records the choice when the browser leaves for the provider, so it doesn't tell whether that sign-in succeeded. Only true in login flows when show_last_used_method is on in the project configuration. Custom components may ignore it.
props.isSubmittingboolean-
props.logos?Record<string, ElementType>Logos to use for the social buttons. If not provided, the default logos will be used.
props.nodeUiNodeInput-
props.providerstring-

Returns​

Element