UNPKG

@selfcommunity/react-ui

Version:

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

62 lines (53 loc) 1.48 kB
import { SCGroupType, SCUserType } from '@selfcommunity/types'; import { HTMLAttributes } from 'react'; export interface AcceptRequestUserGroupButtonProps { /** * Overrides or extends the styles applied to the component. * @default null */ className?: HTMLAttributes<HTMLButtonElement>['className']; /** * Id of the group * @default null */ groupId?: number; /** * Group * @default null */ group?: SCGroupType; /** * Id of the user * @default null */ userId?: number; /** * Group * @default null */ user?: SCUserType; /** * Callback when user accept request * @default null */ handleConfirm?: ((id: number | null) => void) | null; /** * Others properties */ [p: string]: any; } /** * > API documentation for the Community-JS Accept Request User Group Button component. Learn about the available props and the CSS API. #### Import ```jsx import {AcceptRequestUserGroupButton} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCAcceptRequestUserEventButton` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCAcceptRequestUserGroupButton-root|Styles applied to the root element.| * @param inProps */ export default function AcceptRequestUserGroupButton(inProps: AcceptRequestUserGroupButtonProps): JSX.Element;