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