UNPKG

@selfcommunity/react-ui

Version:

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

41 lines (36 loc) 1.13 kB
import { SCUserType } from '@selfcommunity/types'; import { FollowUserButtonProps } from '../FollowUserButton'; import { FriendshipButtonProps } from '../FriendshipUserButton'; export interface ConnectionUserButtonProps { /** * User Object * @default null */ user?: SCUserType; /** * Props to spread to follow/friendship button * @default {} */ followConnectUserButtonProps?: FollowUserButtonProps | FriendshipButtonProps; /** * Any other properties */ [p: string]: any; } /** * > API documentation for the Community-JS Connection User Button component. Learn about the available props and the CSS API. * * #### Import ```jsx import {ConnectionUserButton} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCConnectionUserButton` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCConnectionUserButton-root|Styles applied to the root element.| * @param inProps */ export default function ConnectionUserButton(inProps: ConnectionUserButtonProps): JSX.Element;