Skip to main content

ChangeGroupCover

Interfaces

ChangeGroupCoverProps

Indexable

[p: string]: any

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: any) => voidOn change function.

Default
null

Functions

ChangeGroupCover()

ChangeGroupCover(inProps): JSX.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

JSX.Element

Source

packages/react-ui/src/components/ChangeGroupCover/ChangeGroupCover.tsx:91