UNPKG

@selfcommunity/react-ui

Version:

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

40 lines (32 loc) 1.34 kB
import { WidgetProps } from '../Widget'; export interface LoyaltyProgramWidgetProps extends WidgetProps { /** * The user id * @default null */ userId?: number; } /** * > API documentation for the Community-JS Loyalty Program Widget component. Learn about the available props and the CSS API. * * * This component renders a widget containing the points earn by the user with the loyalty program. * Take a look at our <strong>demo</strong> component [here](/docs/sdk/community-js/react-ui/Components/LoyaltyProgram) #### Import ```jsx import {LoyaltyProgramWidget} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCLoyaltyProgramWidget` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCLoyaltyProgramWidget-root|Styles applied to the root element.| |title.SCLoyaltyProgramWidget-title|Styles applied to the title element.| |actions|.SCLoyaltyProgramWidget-actions|Styles applied to the actions section.| |points|.SCLoyaltyProgramWidget-points|Styles applied to the points section.| |discoverMore|.SCLoyaltyProgramWidget-discover-more|Styles applied to discover more button element.| * * @param inProps */ export default function LoyaltyProgramWidget(inProps: LoyaltyProgramWidgetProps): JSX.Element;