Interface: CategoryProps
Category.CategoryProps
API documentation for the Community-JS Widget component. Learn about the available props and the CSS API.
Import
import {Widget} from '@selfcommunity/react-ui';
Component Name
The name SCWidget
can be used when providing style overrides in the theme.
CSS
Rule Name | Global class | Description |
---|---|---|
root | .SCWidget-root | Styles applied to the root element. |
Hierarchy
-
↳
CategoryProps
Indexable
▪ [p: string
]: any
Any other properties
Properties
autoHide
• Optional
autoHide: boolean
Hides this component
Default
false
Defined in
packages/react-ui/src/components/Category/Category.tsx:49
category
• Optional
category: SCCategoryType
Category Object
Default
null
Defined in
packages/react-ui/src/components/Category/Category.tsx:44
categoryFollowButtonProps
• Optional
categoryFollowButtonProps: CategoryFollowButtonProps
Props to spread to follow button
Default
{}
Defined in
packages/react-ui/src/components/Category/Category.tsx:54
categoryId
• Optional
categoryId: number
Category Id
Default
null
Defined in
packages/react-ui/src/components/Category/Category.tsx:39
className
• Optional
className: string
Overrides or extends the styles applied to the component.
Default
null
Inherited from
Defined in
packages/react-ui/src/components/Widget/index.tsx:45
showFollowers
• Optional
showFollowers: boolean
Prop to show category followers as secondary text
Default
true