UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

39 lines (31 loc) 1.23 kB
import { ButtonProps } from '@mui/material'; import { SCUserType } from '@selfcommunity/types'; export interface AccountDeleteButtonProps extends Pick<ButtonProps, Exclude<keyof ButtonProps, 'onClick' | 'disabled'>> { /** * Callback when delete account */ onDeleteAccount?: (user?: SCUserType) => void; /** * Others properties */ [p: string]: any; } /** * > 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](/docs/sdk/community-js/react-ui/Components/AccountDelete) component. #### Import ```jsx 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.| * @param inProps */ export default function AccountDeleteButton(inProps: AccountDeleteButtonProps): JSX.Element;