SignOutButton API
API reference docs for the React SignOutButton component. Learn about the props, CSS, and other APIs of this exported module.
Demos
Import
import { SignOutButton } from '@toolpad/core/Account';| Name | Type | Description | 
|---|---|---|
| children | node | The content of the component. | 
The component cannot hold a ref.
These class names are useful for styling with CSS. They are applied to the component's slots when specific states are triggered.
| Class name | Rule name | Description | 
|---|---|---|
| . | colorError | Styles applied to the root element if color="error". | 
| . | colorInfo | Styles applied to the root element if color="info". | 
| . | colorInherit | Styles applied to the root element if color="inherit". | 
| . | colorPrimary | Styles applied to the root element if color="primary". | 
| . | colorSecondary | Styles applied to the root element if color="secondary". | 
| . | colorSuccess | Styles applied to the root element if color="success". | 
| . | colorWarning | Styles applied to the root element if color="warning". | 
| . | contained | Styles applied to the root element if variant="contained". | 
| . | containedError | Styles applied to the root element if variant="contained"andcolor="error". | 
| . | containedInfo | Styles applied to the root element if variant="contained"andcolor="info". | 
| . | containedInherit | Styles applied to the root element if variant="contained"andcolor="inherit". | 
| . | containedPrimary | Styles applied to the root element if variant="contained"andcolor="primary". | 
| . | containedSecondary | Styles applied to the root element if variant="contained"andcolor="secondary". | 
| . | containedSizeLarge | Styles applied to the root element if size="large"andvariant="contained". | 
| . | containedSizeMedium | Styles applied to the root element if size="medium"andvariant="contained". | 
| . | containedSizeSmall | Styles applied to the root element if size="small"andvariant="contained". | 
| . | containedSuccess | Styles applied to the root element if variant="contained"andcolor="success". | 
| . | containedWarning | Styles applied to the root element if variant="contained"andcolor="warning". | 
| . | disabled | State class applied to the root element if disabled={true}. | 
| . | disableElevation | Styles applied to the root element if disableElevation={true}. | 
| . | endIcon | Styles applied to the endIcon element if supplied. | 
| . | focusVisible | State class applied to the ButtonBase root element if the button is keyboard focused. | 
| . | fullWidth | Styles applied to the root element if fullWidth={true}. | 
| . | icon | Styles applied to the icon element if supplied | 
| . | iconSizeLarge | Styles applied to the icon element if supplied and size="large". | 
| . | iconSizeMedium | Styles applied to the icon element if supplied and size="medium". | 
| . | iconSizeSmall | Styles applied to the icon element if supplied and size="small". | 
| . | loading | Styles applied to the root element if loading={true}. | 
| . | loadingIconPlaceholder | Styles applied to the loadingIconPlaceholder element. | 
| . | loadingIndicator | Styles applied to the loadingIndicator element. | 
| . | loadingPositionCenter | Styles applied to the root element if loadingPosition="center". | 
| . | loadingPositionEnd | Styles applied to the root element if loadingPosition="end". | 
| . | loadingPositionStart | Styles applied to the root element if loadingPosition="start". | 
| . | loadingWrapper | Styles applied to the loadingWrapper element. | 
| . | outlined | Styles applied to the root element if variant="outlined". | 
| . | outlinedError | Styles applied to the root element if variant="outlined"andcolor="error". | 
| . | outlinedInfo | Styles applied to the root element if variant="outlined"andcolor="info". | 
| . | outlinedInherit | Styles applied to the root element if variant="outlined"andcolor="inherit". | 
| . | outlinedPrimary | Styles applied to the root element if variant="outlined"andcolor="primary". | 
| . | outlinedSecondary | Styles applied to the root element if variant="outlined"andcolor="secondary". | 
| . | outlinedSizeLarge | Styles applied to the root element if size="large"andvariant="outlined". | 
| . | outlinedSizeMedium | Styles applied to the root element if size="medium"andvariant="outlined". | 
| . | outlinedSizeSmall | Styles applied to the root element if size="small"andvariant="outlined". | 
| . | outlinedSuccess | Styles applied to the root element if variant="outlined"andcolor="success". | 
| . | outlinedWarning | Styles applied to the root element if variant="outlined"andcolor="warning". | 
| . | root | Styles applied to the root element. | 
| . | sizeLarge | Styles applied to the root element if size="large". | 
| . | sizeMedium | Styles applied to the root element if size="medium". | 
| . | sizeSmall | Styles applied to the root element if size="small". | 
| . | startIcon | Styles applied to the startIcon element if supplied. | 
| . | text | Styles applied to the root element if variant="text". | 
| . | textError | Styles applied to the root element if variant="text"andcolor="error". | 
| . | textInfo | Styles applied to the root element if variant="text"andcolor="info". | 
| . | textInherit | Styles applied to the root element if variant="text"andcolor="inherit". | 
| . | textPrimary | Styles applied to the root element if variant="text"andcolor="primary". | 
| . | textSecondary | Styles applied to the root element if variant="text"andcolor="secondary". | 
| . | textSizeLarge | Styles applied to the root element if size="large"andvariant="text". | 
| . | textSizeMedium | Styles applied to the root element if size="medium"andvariant="text". | 
| . | textSizeSmall | Styles applied to the root element if size="small"andvariant="text". | 
| . | textSuccess | Styles applied to the root element if variant="text"andcolor="success". | 
| . | textWarning | Styles applied to the root element if variant="text"andcolor="warning". | 
You can override the style of the component using one of these customization options:
- With a global class name.
- With a rule name as part of the component's styleOverridesproperty in a custom theme.
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.