Skip to main content

ChangeCover

Interfaces

ChangeCoverProps

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
onChange?(cover) => voidOn change function. Default null

Functions

ChangeCover()

ChangeCover(inProps): Element

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

This component renders a button that allows users to edit their profile cover and a popover that specifies format and sizes allowed. Take a look at our demo component here

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCChangeCoverButton-rootStyles applied to the root element.
helpPopover.SCChangeCoverButton-help-popoverStyles applied to the help popover element.
addMenuItem.SCChangeCoverButton-add-menuItemStyles applied to the add menu element.
delMenuItem.SCChangeCoverButton-del-menuItemStyles applied to the del menu element.

Parameters

ParameterTypeDescription
inPropsChangeCoverProps

Returns

Element