@selfcommunity/react-templates
Version:
React Templates Components to integrate a Community created with SelfCommunity.
70 lines (63 loc) • 1.87 kB
TypeScript
import { FeedObjectProps, FeedProps, FeedSidebarProps, SCFeedWidgetType } from '@selfcommunity/react-ui';
import { SCEventType } from '@selfcommunity/types';
export interface EventFeedProps {
/**
* Id of the feed object
* @default 'feed'
*/
id?: string;
/**
* Overrides or extends the styles applied to the component.
* @default null
*/
className?: string;
/**
* Event Object
* @default null
*/
event?: SCEventType;
/**
* Id of the event for filter the feed
* @default null
*/
eventId?: number;
/**
* Widgets to be rendered into the feed
* @default [EventInfoWidget]
*/
widgets?: SCFeedWidgetType[] | null;
/**
* Props to spread to single feed object
* @default empty object
*/
FeedObjectProps?: FeedObjectProps;
/**
* Props to spread to single feed object
* @default {top: 0, bottomBoundary: `#${id}`}
*/
FeedSidebarProps?: FeedSidebarProps;
/**
* Props to spread to feed component
* @default {}
*/
FeedProps?: Omit<FeedProps, 'endpoint' | 'widgets' | 'ItemComponent' | 'itemPropsGenerator' | 'itemIdGenerator' | 'ItemSkeleton' | 'ItemSkeletonProps' | 'FeedSidebarProps'>;
}
/**
* > API documentation for the Community-JS Group Feed Template. Learn about the available props and the CSS API.
*
*
* This component renders a specific event's feed.
#### Import
```jsx
import {EventFeed} from '@selfcommunity/react-templates';
```
#### Component Name
The name `SCEventFeedTemplate` can be used when providing style overrides in the theme.
#### CSS
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCEventFeedTemplate-root|Styles applied to the root element.|
*
* @param inProps
*/
export default function EventFeed(inProps: EventFeedProps): JSX.Element;