FriendshipUserButton
Interfaces
FriendshipButtonProps
Indexable
[p
: string
]: any
Properties
Property | Type | Description |
---|---|---|
className? | string | Overrides or extends the styles applied to the component. Default null |
onChangeConnectionStatus? | (user : SCUserType , status : string ) => any | onChangeConnectionStatus callback |
user? | SCUserType | User Default null |
userId? | number | Id of the user Default null |
Functions
FriendshipUserButton()
FriendshipUserButton(
inProps
):JSX.Element
API documentation for the Community-JS Friendship User Button component. Learn about the available props and the CSS API.
Import
import {FriendshipUserButton} from '@selfcommunity/react-ui';
Component Name
The name SCFriendshipUserButton
can be used when providing style overrides in the theme.
CSS
Rule Name | Global class | Description |
---|---|---|
root | .SCFriendshipUserButton-root | Styles applied to the root element. |
Parameters
Parameter | Type | Description |
---|---|---|
inProps | FriendshipButtonProps |
Returns
JSX.Element
Source
packages/react-ui/src/components/FriendshipUserButton/FriendshipUserButton.tsx:88