@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
52 lines (48 loc) • 1.54 kB
TypeScript
import { ButtonProps } from '@mui/material/Button/Button';
import { SCEventType } from '@selfcommunity/types';
import { BaseDialogProps } from '../../shared/BaseDialog';
export interface EventParticipantsButtonProps extends Pick<ButtonProps, Exclude<keyof ButtonProps, 'onClick' | 'disabled'>> {
/**
* Event Object
* @default null
*/
event?: SCEventType;
/**
* EventId of event object
* @default null
*/
eventId?: number;
/**
* Hide button label
* @default false
*/
hideCaption?: boolean;
/**
* Props to spread to followedBy dialog
* @default {}
*/
DialogProps?: BaseDialogProps;
/**
* Any other properties
*/
[p: string]: any;
}
/**
*> API documentation for the Community-JS Event Participants Button component. Learn about the available props and the CSS API.
*
#### Import
```jsx
import {EventParticipantsButton} from '@selfcommunity/react-ui';
```
#### Component Name
The name `SCEventParticipantsButton` can be used when providing style overrides in the theme.
* #### CSS
*
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCEventParticipantsButton-root|Styles applied to the root element.|
|dialogRoot|.SCEventParticipantsButton-dialog-root|Styles applied to the root element.|
|endMessage|.SCEventParticipantsButton-end-message|Styles applied to the end message element.|
* @param inProps
*/
export default function EventParticipantsButton(inProps: EventParticipantsButtonProps): JSX.Element;