UNPKG

@selfcommunity/react-ui

Version:

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

58 lines (50 loc) 1.5 kB
export interface ChangeGroupPictureProps { /** * Id of the group. It is optional only for group creation modal. * @default null */ groupId?: number; /** * On change function. * @default null */ onChange?: (cover: any) => void; /** * Hides this component * @default false */ autoHide?: boolean; /** * Overrides or extends the styles applied to the component. * @default null */ className?: string; /** * Prop to handle avatar loading in the create group modal. * @default false */ isCreationMode?: boolean; /** * Any other properties */ [p: string]: any; } /** * > 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 <strong>demo</strong> component [here](/docs/sdk/community-js/react-ui/Components/ChangeGroupPicture) #### Import ```jsx import {ChangeGroupPicture} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCChangeGroupPictureButton` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCChangeGroupPictureButton-root|Styles applied to the root element.| * @param inProps */ export default function ChangeGroupPicture(inProps: ChangeGroupPictureProps): JSX.Element;