Skip to main content

AccountDeleteButton

Interfaces

AccountDeleteButtonProps

Extends

  • Pick<ButtonProps, Exclude<keyof ButtonProps, "onClick" | "disabled">>

Indexable

[p: string]: any

Properties

PropertyTypeDescription
onDeleteAccount?(user?: SCUserType) => voidCallback 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 NameGlobal classDescription
root.SCAccountDeleteButton-rootStyles applied to the root element.
dialogRoot.SCAccountDeleteButton-dialog-rootStyles applied to the dialog root element.

Parameters

ParameterTypeDescription
inPropsAccountDeleteButtonProps

Returns

JSX.Element

Source

packages/react-ui/src/components/AccountDeleteButton/AccountDeleteButton.tsx:67