@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
58 lines (49 loc) • 1.4 kB
TypeScript
import { SCEventType, SCUserType } from '@selfcommunity/types';
import { HTMLAttributes } from 'react';
export interface AcceptRequestUserEventButtonProps {
/**
* 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;
handleConfirm?: ((id: number | null) => void) | null;
/**
* Others properties
*/
[p: string]: any;
}
/**
* > API documentation for the Community-JS Accept Request User Event Button component. Learn about the available props and the CSS API.
#### Import
```jsx
import {AcceptRequestUserEventButton} 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|.SCAcceptRequestUserEventButton-root|Styles applied to the root element.|
* @param inProps
*/
export default function AcceptRequestUserEventButton(inProps: AcceptRequestUserEventButtonProps): JSX.Element;