Skip to main content

ChangePicture

Interfaces

ChangePictureProps

Indexable

[p: string]: any

Properties

PropertyTypeDescription
autoHide?booleanHides this component

Default
false
className?stringOverrides or extends the styles applied to the component.

Default
null
iconButtonbooleanOverrides or extends the styles applied to the component.

Default
null
onChange?(avatar: any) => voidOn change function.

Default
null

Functions

ChangePicture()

ChangePicture(inProps): JSX.Element

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

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

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCChangePictureButton-rootStyles applied to the root element.
root.SCChangePictureButton-dialogStyles applied to the dialog element.

Parameters

ParameterTypeDescription
inPropsChangePictureProps

Returns

JSX.Element

Source

packages/react-ui/src/components/ChangePicture/ChangePicture.tsx:75