UNPKG

@selfcommunity/react-ui

Version:

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

58 lines (49 loc) 1.35 kB
import { SCEventType, SCUserType } from '@selfcommunity/types'; import { HTMLAttributes } from 'react'; export interface InviteUserEventButtonProps { /** * Overrides or extends the styles applied to the component. * @default null */ className?: HTMLAttributes<HTMLButtonElement>['className']; /** * Id of the event * @default null */ eventId?: number; /** * Event * @default null */ event?: SCEventType; /** * Id of the user * @default null */ userId?: number; /** * Event * @default null */ user?: SCUserType; handleInvitations?: ((invited: boolean) => void) | null; /** * Others properties */ [p: string]: any; } /** * > API documentation for the Community-JS Invite Event Button component. Learn about the available props and the CSS API. #### Import ```jsx import {InviteUserEventButton} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCInviteUserEventButton` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCInviteUserEventButton-root|Styles applied to the root element.| * @param inProps */ export default function InviteUserEventButton(inProps: InviteUserEventButtonProps): JSX.Element;