Skip to main content

FollowUserButton

Interfaces

FollowUserButtonProps

Indexable

[p: string]: any

Properties

PropertyTypeDescription
className?stringOverrides or extends the styles applied to the component.

Default
null
onFollow?(user: SCUserType, followed: boolean) => anyonFollow callback
user?SCUserTypeUser

Default
null
userId?numberId of the user

Default
null

Functions

FollowUserButton()

FollowUserButton(inProps): JSX.Element

API documentation for the Community-JS Follow User Button component. Learn about the available props and the CSS API.

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCFollowUserButton-rootStyles applied to the root element.

Parameters

ParameterTypeDescription
inPropsFollowUserButtonProps

Returns

JSX.Element

Source

packages/react-ui/src/components/FollowUserButton/FollowUserButton.tsx:87