@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
44 lines (39 loc) • 1.12 kB
TypeScript
import { CreateEventButtonProps } from '../CreateEventButton';
import { SCEventType } from '@selfcommunity/types';
export interface EditEventButtonProps extends CreateEventButtonProps {
/**
* Event Object
* @default null
*/
event?: SCEventType;
/**
* Id of the event
* @default null
*/
eventId?: number | string;
/**
* On edit success callback function
* @default null
*/
onEditSuccess?: (data: SCEventType) => void;
/**
* Any other properties
*/
[p: string]: any;
}
/**
*> API documentation for the Community-JS Create Event Button component. Learn about the available props and the CSS API.
*
#### Import
```jsx
import {CreateEventButton} from '@selfcommunity/react-ui';
```
#### Component Name
The name `SCEditEventButton` can be used when providing style overrides in the theme.
#### CSS
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCEditEventButton-root|Styles applied to the root element.|
* @param inProps
*/
export default function EditEventButton(inProps: EditEventButtonProps): JSX.Element;