Skip to main content

<DefaultButtonSocial />

function DefaultButtonSocial(props: {
attributes: UiNodeInputAttributes;
logos?: Record<string, ElementType>;
node: UiNode;
onClick?: () => void;
showLabel?: boolean;
}): Element;

The default implementation of a social button for Ory SSO. It renders a button with a logo and an optional label.

Parameters

ParameterTypeDescription
props{ attributes: UiNodeInputAttributes; logos?: Record<string, ElementType>; node: UiNode; onClick?: () => void; showLabel?: boolean; }The props for the DefaultButtonSocial component.
props.attributesUiNodeInputAttributes-
props.logos?Record<string, ElementType>Logos to use for the social buttons. If not provided, the default logos will be used.
props.nodeUiNode-
props.onClick?() => void-
props.showLabel?booleanWhether to show the label next to the logo. If not provided, it will be determined based on the number of SSO nodes.

Returns

Element