AccountDeleteButton
Interfaces
AccountDeleteButtonProps
Extends
Pick
<ButtonProps
,Exclude
<keyofButtonProps
,"onClick"
|"disabled"
>>
Indexable
[p
: string
]: any
Properties
Property | Type | Description |
---|---|---|
onDeleteAccount? | (user ?: SCUserType ) => void | Callback when delete account |
Functions
AccountDeleteButton()
AccountDeleteButton(
inProps
):JSX.Element
API documentation for the Community-JS Account Delete Button component. Learn about the available props and the CSS API.
This component display a button that open a Dialog that display the AccountDelete component.
Import
import {AccountDeleteButton} from '@selfcommunity/react-ui';
Component Name
The name SCAccountDeleteButton
can be used when providing style overrides in the theme.
CSS
Rule Name | Global class | Description |
---|---|---|
root | .SCAccountDeleteButton-root | Styles applied to the root element. |
dialogRoot | .SCAccountDeleteButton-dialog-root | Styles applied to the dialog root element. |
Parameters
Parameter | Type | Description |
---|---|---|
inProps | AccountDeleteButtonProps |
Returns
JSX.Element
Source
packages/react-ui/src/components/AccountDeleteButton/AccountDeleteButton.tsx:67