UNPKG

@selfcommunity/react-ui

Version:

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

54 lines (46 loc) 1.4 kB
export interface ChangePictureProps { /** * On change function. * @default null */ onChange?: (avatar: any) => void; /** * Hides this component * @default false */ autoHide?: boolean; /** * Overrides or extends the styles applied to the component. * @default null */ className?: string; /** * Overrides or extends the styles applied to the component. * @default null */ iconButton: boolean; /** * Any other properties */ [p: string]: any; } /** * > 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 <strong>demo</strong> component [here](/docs/sdk/community-js/react-ui/Components/ChangePicture) #### Import ```jsx 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.| * @param inProps */ export default function ChangePicture(inProps: ChangePictureProps): JSX.Element;