UNPKG

@selfcommunity/react-ui

Version:

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

47 lines (38 loc) 1.06 kB
import { SCUserType } from '@selfcommunity/types'; export interface UserCountersProps { /** * Overrides or extends the styles applied to the component. * @default null */ className?: string; /** * Id of user object * @default null */ userId?: number; /** * User Object * @default null */ user?: SCUserType; /** * Any other properties */ [p: string]: any; } /** * > API documentation for the Community-JS User Counters component. Learn about the available props and the CSS API. #### Import ```jsx import {UserCounters} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCUserCounters` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCUserCounters-root|Styles applied to the root element.| |field|.SCUserCounters-field|Styles applied to the field element.| * @param inProps */ export default function UserCounters(inProps: UserCountersProps): JSX.Element;