Reference
Nodes
Components
Sign-in Widget

Sign-in Widget Component

Sign-in Widgets allow you to quickly add a set of sign-in providers to your application.

Properties

Visible

PropisVisible
Typeboolean
Defaulttrue

Whether or not this node is visible.

Enabled

PropisEnabled
Typeboolean
Defaulttrue

Whether or not this node is enabled.

Tooltip

Proptooltip
Typestring
Defaultundefined

The tooltip text to display when hovered or focused over this node.

Top

Proptop
Typenumber
Default1

The position of the node from the top side of the grid (grid-row-start).

Left

Propleft
Typenumber
Default1

The position of the node from the left side of the grid (grid-column-start).

Width

Propwidth
Typestring
Default128px

The width of the node. When this node is in a grid layout, this should be done using unitless grid column units (specifying 4 will become grid-column-end: span 4). When this node is in a stack layout, the width can be specified using CSS units (e.g. 100px or 100%), or be left unitless to be treated as flex-grow for the node.

Min Width

PropminWidth
Typestring
Defaultundefined

The minimum width of the node. When this node is in a grid layout, this property is ignored.

Max Width

PropmaxWidth
Typestring
Defaultundefined

The maximum width of the node. When this node is in a grid layout, this property is ignored.

Height

Propheight
Typestring
Default32px

The height of the node. When this node is in a grid layout, this should be done using unitless grid row units (specifying 4 will become grid-row-end: span 4). When this node is in a stack layout, the height can be specified using CSS units (e.g. 100px or 100%), or be left unitless to be treated as flex-grow for the node.

Min Height

PropminHeight
Typestring
Defaultundefined

The minimum height of the node. When this node is in a grid layout, this property is ignored.

Max Height

PropmaxHeight
Typestring
Defaultundefined

The minimum height of the node. When this node is in a grid layout, this property is ignored.

Overflow

Propoverflow
TypeOverflow ('auto' | 'visible' | 'hidden' | 'scroll')
Defaultauto

The strategy used to handle overflow in the horizontal and vertical axes for content that is larger than its container.

Overflow X

PropoverflowX
TypeOverflow ('auto' | 'visible' | 'hidden' | 'scroll')
Defaultauto

The strategy used to handle overflow in the horizontal axis for content that is larger than its container.

Overflow Y

PropoverflowY
TypeOverflow ('auto' | 'visible' | 'hidden' | 'scroll')
Defaultauto

The strategy used to handle overflow in the vertical axis for content that is larger than its container.

Custom Styles

Propstyles
Typestring
Default::component { }

Custom CSS styles to be applied to the node. Use element.styles to refer to the current node.

Object Fit

PropobjectFit
TypeObjectFit ('none' | 'contain' | 'cover' | 'fill' | 'scale-down')
Defaultcover

The strategy used to set how the content of a replaced element should be resized to fit its container.

Text Color

PropoidcTextColor
Typestring
Defaultwhite

The text color of each button's label.

Font Size

PropoidcFontSize
TypeFontSize ('xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl')
Defaultsm

The font size of each button's label.

Border Radius

PropoidcBorderRadius
Typestring
Default4px

The radius of the rounded corners of each button's border (perimeter). Supports the same values as the corresponding CSS property.

Button Height

PropoidcButtonHeight
Typestring
Default42px

The height of each button.

Button Color

PropoidcButtonColor
Typestring
Defaultbutton.muted

The background color of each button.

Hover Button Color

PropoidcHoverButtonColor
Typestring
Defaultundefined

The background color of each button when it is hovered over or focused.

Should Redirect

PropshouldRedirect
Typeboolean
Defaulttrue

Whether the user should be redirected back to another page on successful authentication.

Redirect Path

PropdefaultRedirectPath
Typestring
Default/

What path to send the user to upon successful authentication if the user does not have another path they were previously redirect from.

Primary Code Text

PropotpPrimaryCodeText
Typestring
DefaultCheck your inbox for a code

The text of the header on the PIN code verification step.

Secondary Code Text

PropotpSecondaryCodeText
Typestring
DefaultPlease be sure to check your spam folder as well.

The text of the subheading on the PIN code verification step.

Success Text

PropotpSuccessText
Typestring
DefaultYou're signed in

The text of the header on the success step.

Primary Button Color

PropotpPrimaryButtonBackgroundColor
Typestring
Defaultbutton.background

The background color of the "Continue with email" button.

Primary Button Hover Color

PropotpPrimaryButtonHoverBackgroundColor
Typestring
Defaultundefined

The hover color of the "Continue with email" button.

Primary Button Text Color

PropotpPrimaryButtonTextColor
Typestring
Defaultbutton.text

The color of the "Continue with email" button text.

Secondary Button Color

PropotpSecondaryButtonHoverColor
Typestring
Defaultbutton.ghost

The hover color of the "Back" button.

Secondary Button Text Color

PropotpSecondaryButtonTextColor
Typestring
Defaulttext.primary

The color of the "Back" button text.

Font Size

PropotpFontSize
TypeFontSize ('xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl')
Defaultsm

The font size of each button's label.

Border Radius

PropotpBorderRadius
Typestring
Default6px

The radius of the rounded corners of each button's border (perimeter). Supports the same values as the corresponding CSS property.

Button Height

PropotpButtonHeight
Typestring
Default42px

The height of each button.

Input Background Color

PropotpInputBackgroundColor
Typestring
Defaultinput.background

The background color of the input.

Input Label Color

PropotpInputLabelColor
Typestring
Defaulttext.primary

The color of the input's label text.

Input Text Color

PropotpInputTextColor
Typestring
Defaulttext.primary

The color of the input's text.

Input Placeholder Color

PropotpInputPlaceholderColor
Typestring
Defaultinput.placeholder

The color of the input's placeholder text.

Event Handlers

On Success

Handlersign-inNode.onSuccess

The event handler to be called upon the successful completion of the sign-in process. This property can be used to chain function calls.

On Failure

Handlersign-inNode.onFailure

The event handler to be called upon the failure of the sign-in process. This property can be used to handle errors in function calls.