ChangePicture
Interfaces
ChangePictureProps
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 |
iconButton | boolean | Overrides or extends the styles applied to the component. Default null |
onChange? | (avatar : any ) => void | On 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 Name | Global class | Description |
---|---|---|
root | .SCChangePictureButton-root | Styles applied to the root element. |
root | .SCChangePictureButton-dialog | Styles applied to the dialog element. |
Parameters
Parameter | Type | Description |
---|---|---|
inProps | ChangePictureProps |
Returns
JSX.Element
Source
packages/react-ui/src/components/ChangePicture/ChangePicture.tsx:75