UNPKG

@selfcommunity/react-ui

Version:

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

58 lines (48 loc) 1.54 kB
import { IconButtonProps } from '@mui/material'; import { SCGroupType } from '@selfcommunity/types'; export interface GroupActionsMenuProps extends IconButtonProps { /** * Overrides or extends the styles applied to the component. * @default null */ className?: string; /** * The group */ group: SCGroupType; /** * The group id */ groupId?: number; /** * Handles callback on delete confirm */ onDeleteConfirm?: () => void; /** * Handles on edit success */ onEditSuccess?: (data: SCGroupType) => any; /** * Any other properties */ [p: string]: any; } /** * > API documentation for the Community-JS GroupActionsMenu component. Learn about the available props and the CSS API. #### Import ```jsx import {GroupActionsMenu} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCGroupActionsMenu` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCGroupActionsMenu-root|Styles applied to the root element.| |drawerRoot|.SCGroupActionsMenu-drawer-root|Styles applied to the drawer root element.| |menuRoot|.SCGroupActionsMenu-menu-root|Styles applied to the menu root element.| |paper|.SCGroupActionsMenu-paper|Styles applied to the paper element.| |item|.SCGroupActionsMenu-item|Styles applied to the item element.| * @param inProps */ export default function GroupActionsMenu(inProps: GroupActionsMenuProps): JSX.Element;