UNPKG

@selfcommunity/react-ui

Version:

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

39 lines (33 loc) 1.15 kB
import { SCMediaObjectType } from '../../types/media'; import { BoxProps } from '@mui/material'; import { SCMediaType } from '@selfcommunity/types'; export interface FeedObjectMediaPreviewProps extends BoxProps { /** * Medias preview array */ medias: SCMediaType[]; /** * Media types * @default 'image', 'document', 'link', 'share', 'Event' */ mediaObjectTypes?: SCMediaObjectType[]; } /** * > API documentation for the Community-JS FeedObjectMediaPreview component. Learn about the available props and the CSS API. * * * The FeedObjectMediaPreview component render the list of medias in a feed object thanks to given configurations. #### Import ```jsx import {FeedObjectMediaPreview} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCFeedObjectMediaPreview` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCFeedObjectMediaPreview-root|Styles applied to the root element.| * @param inProps */ declare const _default: (inProps: FeedObjectMediaPreviewProps) => JSX.Element; export default _default;