UNPKG

@selfcommunity/react-ui

Version:

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

51 lines (45 loc) 1.42 kB
export interface UploadEventCoverProps { /** * Id of the event. It is optional only for event creation modal. * @default null */ eventId?: number; /** * On change function. * @default null */ onChange?: (cover: any) => void; /** * Overrides or extends the styles applied to the component. * @default null */ className?: string; /** * Prop to handle cover loading in the create event modal. * @default false */ isCreationMode?: boolean; /** * Any other properties */ [p: string]: any; } /** * > API documentation for the Community-JS Change Group Cover component. Learn about the available props and the CSS API. * * * This component renders a button that allows admins to edit the group cover and a popover that specifies format and sizes allowed. * Take a look at our <strong>demo</strong> component [here](/docs/sdk/community-js/react-ui/Components/UploadEventCover) #### Import ```jsx import {UploadEventCover} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCUploadEventCover` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCUploadEventCover-root|Styles applied to the root element.| * @param inProps */ export default function UploadEventCover(inProps: UploadEventCoverProps): JSX.Element;