ChangeGroupCover
Interfaces
ChangeGroupCoverProps
Indexable
[p
: string
]: any
Properties
Property | Type | Description |
---|---|---|
autoHide? | boolean | Hides this component Default false |
className? | string | Overrides or extends the styles applied to the component. Default null |
groupId? | number | Id of the group. It is optional only for group creation modal. Default null |
isCreationMode? | boolean | Prop to handle cover loading in the create group modal. Default false |
onChange? | (cover : any ) => void | On 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 Name | Global class | Description |
---|---|---|
root | .SCChangeGroupCoverButton-root | Styles applied to the root element. |
Parameters
Parameter | Type | Description |
---|---|---|
inProps | ChangeGroupCoverProps |
Returns
JSX.Element
Source
packages/react-ui/src/components/ChangeGroupCover/ChangeGroupCover.tsx:91