UNPKG

@selfcommunity/react-ui

Version:

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

47 lines (43 loc) 1.46 kB
import { ButtonProps } from '@mui/material/Button/Button'; import { SCCategoryType } from '@selfcommunity/types'; import { BaseDialogProps } from '../../shared/BaseDialog'; export interface CategoryFollowersButtonProps extends Pick<ButtonProps, Exclude<keyof ButtonProps, 'onClick' | 'disabled'>> { /** * Category Object * @default null */ category?: SCCategoryType; /** * Id of category object * @default null */ categoryId?: number; /** * Props to spread to followedBy dialog * @default {} */ DialogProps?: BaseDialogProps; /** * Any other properties */ [p: string]: any; } /** *> API documentation for the Community-JS Category Followers Button component. Learn about the available props and the CSS API. * #### Import ```jsx import {CategoryFollowersButton} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCCategoryFollowersButton` can be used when providing style overrides in the theme. * #### CSS * |Rule Name|Global class|Description| |---|---|---| |root|.SCCategoryFollowersButton-root|Styles applied to the root element.| |dialogRoot|.SCCategoryFollowersButton-dialog-root|Styles applied to the root element.| |endMessage|.SCCategoriesFollowedWidget-end-message|Styles applied to the end message element.| * @param inProps */ export default function CategoryFollowersButton(inProps: CategoryFollowersButtonProps): JSX.Element;