@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
57 lines (48 loc) • 1.29 kB
TypeScript
import { SCEventType, SCUserType } from '@selfcommunity/types';
export interface EventSubscribeButtonProps {
/**
* Overrides or extends the styles applied to the component.
* @default null
*/
className?: string;
/**
* Event Object
* @default null
*/
event?: SCEventType;
/**
* Id of the event
* @default null
*/
eventId?: number;
/**
* The user to be accepted into the event
* @default null
*/
user?: SCUserType;
/**
* onSubscribe callback
* @param user
* @param joined
*/
onSubscribe?: (event: SCEventType) => any;
/**
* Others properties
*/
[p: string]: any;
}
/**
* > API documentation for the Community-JS Event Subscribe Button component. Learn about the available props and the CSS API.
#### Import
```jsx
import {EventSubscribeButton} from '@selfcommunity/react-ui';
```
#### Component Name
The name `SCEventSubscribeButton` can be used when providing style overrides in the theme.
#### CSS
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCEventSubscribeButton-root|Styles applied to the root element.|
* @param inProps
*/
export default function EventSubscribeButton(inProps: EventSubscribeButtonProps): JSX.Element;