Module: Categories
Interfaces
Functions
Categories
▸ Categories(inProps
): JSX.Element
API documentation for the Community-JS Categories component. Learn about the available props and the CSS API.
The Categories component renders the list of all available categories. Take a look at our demo component here
Import
import {Categories} from '@selfcommunity/react-ui';
Component Name
The name SCCategories
can be used when providing style overrides in the theme.
CSS
Rule Name | Global class | Description |
---|---|---|
root | .SCCategories-root | Styles applied to the root element. |
filters | .SCCategories-filter | Styles applied to the filter. |
categories | .SCCategories-categories | Styles applied to the list of categories. |
category | .SCCategories-category | Styles applied to the of category element. |
noResults | .SCCategories-no-results | Styles applied to no results section. |
Parameters
Name | Type |
---|---|
inProps | CategoriesProps |
Returns
JSX.Element
Defined in
packages/react-ui/src/components/Categories/Categories.tsx:128
CategoriesSkeleton
▸ CategoriesSkeleton(inProps
): JSX.Element
API documentation for the Community-JS Categories Skeleton component. Learn about the available props and the CSS API.
Import
import {CategoriesSkeleton} from '@selfcommunity/react-ui';
Component Name
The name SCCategories-skeleton-root
can be used when providing style overrides in the theme.
CSS
Rule Name | Global class | Description |
---|---|---|
root | .SCCategories-skeleton-root | Styles applied to the root element. |
categories | .SCCategories-categories | Styles applied to the categories' element. |
Parameters
Name | Type |
---|---|
inProps | CategoriesSkeletonProps |
Returns
JSX.Element