@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
45 lines (40 loc) • 1.37 kB
TypeScript
import { ButtonProps } from '@mui/material/Button/Button';
import { SCEventType, SCLiveStreamType } from '@selfcommunity/types';
import { CreateLiveStreamDialogProps } from '../CreateLiveStreamDialog';
export interface CreateLiveStreamButtonProps extends ButtonProps {
/**
* Overrides or extends the styles applied to the component.
* @default null
*/
className?: string;
/**
* Props to spread to CreateGroup component
* @default empty object
*/
CreateLiveStreamDialogComponentProps?: CreateLiveStreamDialogProps;
/**
* On success callback function
* @default null
*/
onSuccess?: (data: SCEventType | SCLiveStreamType) => void;
/**
* Any other properties
*/
[p: string]: any;
}
/**
*> API documentation for the Community-JS CreateLiveStreamButton component. Learn about the available props and the CSS API.
*
#### Import
```jsx
import {CreateLiveStreamButton} from '@selfcommunity/react-ui';
```
#### Component Name
The name `SCCreateLiveStreamButton` can be used when providing style overrides in the theme.
#### CSS
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCCreateLivestreamButton-root|Styles applied to the root element.|
* @param inProps
*/
export default function CreateLiveStreamButton(inProps: CreateLiveStreamButtonProps): JSX.Element;