EventSubscribeButton
Interfaces
EventSubscribeButtonProps
Indexable
[p
: string
]: any
Properties
Property | Type | Description |
---|---|---|
className? | string | Overrides or extends the styles applied to the component. Default null |
event? | SCEventType | Event Object Default null |
eventId? | number | Id of the event Default null |
onSubscribe? | (event : SCEventType , status : SCEventSubscriptionStatusType ) => any | onSubscribe callback |
user? | SCUserType | The user to be accepted into the event Default null |
Functions
EventSubscribeButton()
EventSubscribeButton(
inProps
):JSX.Element
API documentation for the Community-JS Event Subscribe Button component. Learn about the available props and the CSS API.
Import
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. |
Parameters
Parameter | Type | Description |
---|---|---|
inProps | EventSubscribeButtonProps |
Returns
JSX.Element
Source
packages/react-ui/src/components/EventSubscribeButton/EventSubscribeButton.tsx:139