<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
| Parameter | Type | Description |
|---|---|---|
props | { attributes: UiNodeInputAttributes; buttonProps: OryNodeButtonButtonProps; isLastUsed?: boolean; isSubmitting: boolean; logos?: Record<string, ElementType>; node: UiNodeInput; provider: string; } | The props for the DefaultButtonSocial component. |
props.attributes | UiNodeInputAttributes | Deprecated Use node.attributes instead. |
props.buttonProps | OryNodeButtonButtonProps | - |
props.isLastUsed? | boolean | Whether 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.isSubmitting | boolean | - |
props.logos? | Record<string, ElementType> | Logos to use for the social buttons. If not provided, the default logos will be used. |
props.node | UiNodeInput | - |
props.provider | string | - |
Returns
Element