UNPKG

@selfcommunity/react-ui

Version:

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

74 lines (65 loc) 2.39 kB
import { WidgetProps } from '../Widget'; import { CacheStrategies } from '@selfcommunity/utils'; import { FeedObjectProps } from '../FeedObject'; import { BaseDialogProps } from '../../shared/BaseDialog'; import { VirtualScrollerItemProps } from '../../types/virtualScroller'; export interface CategoryTrendingFeedWidgetProps extends VirtualScrollerItemProps, WidgetProps { /** * Id of category * @default null */ categoryId?: number; /** * Hides this component * @default false */ autoHide?: boolean; /** * Limit the number of categories to show * @default false */ limit?: number; /** * Props to spread to single feed object * @default empty object */ FeedObjectProps?: FeedObjectProps; /** * Caching strategies * @default CacheStrategies.CACHE_FIRST */ cacheStrategy?: CacheStrategies; /** * Props to spread to followers users dialog * @default {} */ DialogProps?: BaseDialogProps; /** * Other props */ [p: string]: any; } /** * > API documentation for the Community-JS Trending Feed Widget component. Learn about the available props and the CSS API. * * * This component renders a specific category's trending posts, discussions, statuses list. * Take a look at our <strong>demo</strong> component [here](/docs/sdk/community-js/react-ui/Components/CategoryTrendingFeed) #### Import ```jsx import {CategoryTrendingFeedWidget} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCCategoryTrendingFeedWidget` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCCategoryTrendingFeedWidget-root|Styles applied to the root element.| |title|.SCCategoryTrendingFeedWidget-title|Styles applied to the title element.| |noResults|.SCCategoryTrendingFeedWidget-no-results|Styles applied to no results section.| |showMore|.SCCategoryTrendingFeedWidget-show-more|Styles applied to show more button element.| |dialogRoot|.SCCategoryTrendingFeedWidget-dialog-root|Styles applied to dialog root element.| |endMessage|.SCCategoryTrendingFeedWidget-end-message|Styles applied to the end message element.| * @param inProps */ export default function CategoryTrendingFeedWidget(inProps: CategoryTrendingFeedWidgetProps): JSX.Element;