Skip to main content

ChangeGroupCover

Interfaces

ChangeGroupCoverProps

Indexable

[p: string]: any

Any other properties

Properties

PropertyTypeDescription
autoHide?booleanHides this component Default false
className?stringOverrides or extends the styles applied to the component. Default null
groupId?numberId of the group. It is optional only for group creation modal. Default null
isCreationMode?booleanProp to handle cover loading in the create group modal. Default false
onChange?(cover) => voidOn change function. Default null

Functions

ChangeGroupCover()

ChangeGroupCover(inProps): Element

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 demo component here

Import

import {ChangeGroupCover} from '@selfcommunity/react-ui';

Component Name

The name SCChangeGroupCoverButton can be used when providing style overrides in the theme.

CSS

Rule NameGlobal classDescription
root.SCChangeGroupCoverButton-rootStyles applied to the root element.

Parameters

ParameterTypeDescription
inPropsChangeGroupCoverProps

Returns

Element