UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

52 lines (43 loc) 1.18 kB
import { SCCourseType } from '@selfcommunity/types'; export interface CourseJoinButtonProps { /** * Overrides or extends the styles applied to the component. * @default null */ className?: string; /** * Course Object * @default null */ course?: SCCourseType; /** * Id of the course * @default null */ courseId?: number; /** * onJoin callback * @param user * @param joined */ onJoin?: (course: SCCourseType, status: string | null) => any; /** * Others properties */ [p: string]: any; } /** * > API documentation for the Community-JS Course Subscribe Button component. Learn about the available props and the CSS API. #### Import ```jsx import {CourseJoinButton} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCCourseJoinButton` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCCourseJoinButton-root|Styles applied to the root element.| * @param inProps */ export default function CourseJoinButton(inProps: CourseJoinButtonProps): JSX.Element;