UNPKG

@selfcommunity/react-ui

Version:

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

52 lines (43 loc) 1.2 kB
import { SCUserType } from '@selfcommunity/types'; export interface FriendshipButtonProps { /** * Overrides or extends the styles applied to the component. * @default null */ className?: string; /** * Id of the user * @default null */ userId?: number; /** * User * @default null */ user?: SCUserType; /** * onChangeConnectionStatus callback * @param user * @param status */ onChangeConnectionStatus?: (user: SCUserType, status: string) => any; /** * Others properties */ [p: string]: any; } /** * > API documentation for the Community-JS Friendship User Button component. Learn about the available props and the CSS API. #### Import ```jsx 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.| * @param inProps */ export default function FriendshipUserButton(inProps: FriendshipButtonProps): JSX.Element;