Skip to content

SignInButton API

API reference docs for the React SignInButton component. Learn about the props, CSS, and other APIs of this exported module.

Demos

Import

import { SignInButton } from '@toolpad/core/Account';

Props

NameTypeDescription
The component cannot hold a ref.

CSS classes

These class names are useful for styling with CSS. They are applied to the component's slots when specific states are triggered.

Class nameRule nameDescription
.colorErrorStyles applied to the root element if color="error".
.colorInfoStyles applied to the root element if color="info".
.colorInheritStyles applied to the root element if color="inherit".
.colorPrimaryStyles applied to the root element if color="primary".
.colorSecondaryStyles applied to the root element if color="secondary".
.colorSuccessStyles applied to the root element if color="success".
.colorWarningStyles applied to the root element if color="warning".
.containedStyles applied to the root element if variant="contained".
.containedErrorStyles applied to the root element if variant="contained" and color="error".
.containedInfoStyles applied to the root element if variant="contained" and color="info".
.containedInheritStyles applied to the root element if variant="contained" and color="inherit".
.containedPrimaryStyles applied to the root element if variant="contained" and color="primary".
.containedSecondaryStyles applied to the root element if variant="contained" and color="secondary".
.containedSizeLargeStyles applied to the root element if size="large" and variant="contained".
.containedSizeMediumStyles applied to the root element if size="medium" and variant="contained".
.containedSizeSmallStyles applied to the root element if size="small" and variant="contained".
.containedSuccessStyles applied to the root element if variant="contained" and color="success".
.containedWarningStyles applied to the root element if variant="contained" and color="warning".
.disabledState class applied to the root element if disabled={true}.
.disableElevationStyles applied to the root element if disableElevation={true}.
.endIconStyles applied to the endIcon element if supplied.
.focusVisibleState class applied to the ButtonBase root element if the button is keyboard focused.
.fullWidthStyles applied to the root element if fullWidth={true}.
.iconStyles applied to the icon element if supplied
.iconSizeLargeStyles applied to the icon element if supplied and size="large".
.iconSizeMediumStyles applied to the icon element if supplied and size="medium".
.iconSizeSmallStyles applied to the icon element if supplied and size="small".
.outlinedStyles applied to the root element if variant="outlined".
.outlinedErrorStyles applied to the root element if variant="outlined" and color="error".
.outlinedInfoStyles applied to the root element if variant="outlined" and color="info".
.outlinedInheritStyles applied to the root element if variant="outlined" and color="inherit".
.outlinedPrimaryStyles applied to the root element if variant="outlined" and color="primary".
.outlinedSecondaryStyles applied to the root element if variant="outlined" and color="secondary".
.outlinedSizeLargeStyles applied to the root element if size="large" and variant="outlined".
.outlinedSizeMediumStyles applied to the root element if size="medium" and variant="outlined".
.outlinedSizeSmallStyles applied to the root element if size="small" and variant="outlined".
.outlinedSuccessStyles applied to the root element if variant="outlined" and color="success".
.outlinedWarningStyles applied to the root element if variant="outlined" and color="warning".
.rootStyles applied to the root element.
.sizeLargeStyles applied to the root element if size="large".
.sizeMediumStyles applied to the root element if size="medium".
.sizeSmallStyles applied to the root element if size="small".
.startIconStyles applied to the startIcon element if supplied.
.textStyles applied to the root element if variant="text".
.textErrorStyles applied to the root element if variant="text" and color="error".
.textInfoStyles applied to the root element if variant="text" and color="info".
.textInheritStyles applied to the root element if variant="text" and color="inherit".
.textPrimaryStyles applied to the root element if variant="text" and color="primary".
.textSecondaryStyles applied to the root element if variant="text" and color="secondary".
.textSizeLargeStyles applied to the root element if size="large" and variant="text".
.textSizeMediumStyles applied to the root element if size="medium" and variant="text".
.textSizeSmallStyles applied to the root element if size="small" and variant="text".
.textSuccessStyles applied to the root element if variant="text" and color="success".
.textWarningStyles applied to the root element if variant="text" and color="warning".

You can override the style of the component using one of these customization options:

Source code

If you did not find the information in this page, consider having a look at the implementation of the component for more detail.