CategoryFollowButton
Interfaces
CategoryFollowButtonProps
Indexable
[p
: string
]: any
Properties
Property | Type | Description |
---|---|---|
category? | SCCategoryType | Category Object Default null |
categoryId? | number | Id of the category Default null |
className? | string | Overrides or extends the styles applied to the component. Default null |
onFollow? | (category : SCCategoryType , followed : boolean ) => any | onFollow callback |
Functions
CategoryFollowButton()
CategoryFollowButton(
inProps
):JSX.Element
API documentation for the Community-JS Follow Category Button component. Learn about the available props and the CSS API.
Import
import {CategoryFollowButton} from '@selfcommunity/react-ui';
Component Name
The name SCCategoryFollowButton
can be used when providing style overrides in the theme.
CSS
Rule Name | Global class | Description |
---|---|---|
root | .SCCategoryFollowButton-root | Styles applied to the root element. |
Parameters
Parameter | Type | Description |
---|---|---|
inProps | CategoryFollowButtonProps |
Returns
JSX.Element
Source
packages/react-ui/src/components/CategoryFollowButton/CategoryFollowButton.tsx:85