@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
52 lines (43 loc) • 1.26 kB
TypeScript
import { SCIncubatorType } from '@selfcommunity/types';
export interface IncubatorSubscribeButtonProps {
/**
* Overrides or extends the styles applied to the component.
* @default null
*/
className?: string;
/**
* Id of the incubator
* @default null
*/
incubatorId?: number;
/**
* Incubator
* @default null
*/
incubator?: SCIncubatorType;
/**
* onSubscribe callback
* @param incubator
* @param subscribed
*/
onSubscribe?: (incubator: SCIncubatorType, subscribed: boolean) => any;
/**
* Others properties
*/
[p: string]: any;
}
/**
* > API documentation for the Community-JS Incubator Subscribe Button component. Learn about the available props and the CSS API.
#### Import
```jsx
import {IncubatorSubscribeButton} from '@selfcommunity/react-ui';
```
#### Component Name
The name `SCIncubatorSubscribeButton` can be used when providing style overrides in the theme.
#### CSS
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCIncubatorSubscribeButton-root|Styles applied to the root element.|
* @param inProps
*/
export default function IncubatorSubscribeButton(inProps: IncubatorSubscribeButtonProps): JSX.Element;