Skip to main content

ChangeGroupPicture

Interfaces

ChangeGroupPictureProps

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 avatar loading in the create group modal.

Default
false
onChange?(cover: any) => voidOn change function.

Default
null

Functions

ChangeGroupPicture()

ChangeGroupPicture(inProps): JSX.Element

API documentation for the Community-JS Change Group Picture component. Learn about the available props and the CSS API.

This component renders a button that allows admins to manage their group pictures. Take a look at our demo component here

Import

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

Component Name

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

CSS

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

Parameters

ParameterTypeDescription
inPropsChangeGroupPictureProps

Returns

JSX.Element

Source

packages/react-ui/src/components/ChangeGroupPicture/ChangeGroupPicture.tsx:89