Skip to main content

CategoryFollowButton

Interfaces

CategoryFollowButtonProps

Indexable

[p: string]: any

Properties

PropertyTypeDescription
category?SCCategoryTypeCategory Object

Default
null
categoryId?numberId of the category

Default
null
className?stringOverrides or extends the styles applied to the component.

Default
null
onFollow?(category: SCCategoryType, followed: boolean) => anyonFollow 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 NameGlobal classDescription
root.SCCategoryFollowButton-rootStyles applied to the root element.

Parameters

ParameterTypeDescription
inPropsCategoryFollowButtonProps

Returns

JSX.Element

Source

packages/react-ui/src/components/CategoryFollowButton/CategoryFollowButton.tsx:85