UNPKG

@selfcommunity/react-ui

Version:

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

40 lines (33 loc) 1.49 kB
import { jsx as _jsx } from "react/jsx-runtime"; import Widget from '../Widget'; import List from '@mui/material/List'; import { styled } from '@mui/material/styles'; import UserSkeleton from '../User/Skeleton'; import { CardContent, ListItem } from '@mui/material'; import { PREFIX } from './constants'; const classes = { root: `${PREFIX}-skeleton-root`, list: `${PREFIX}-list` }; const Root = styled(Widget, { name: PREFIX, slot: 'SkeletonRoot' })(() => ({})); /** * > API documentation for the Community-JS Trending People Widget Skeleton component. Learn about the available props and the CSS API. #### Import ```jsx import {CategoryTrendingPeopleWidgetSkeleton} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCCategoryTrendingPeopleWidget-skeleton-root` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCCategoryTrendingPeopleWidget-skeleton-root|Styles applied to the root element.| |list|.SCCategoryTrendingPeopleWidget-list|Styles applied to the list element.| * */ export default function CategoryTrendingPeopleWidgetSkeleton(props) { return (_jsx(Root, Object.assign({ className: classes.root }, props, { children: _jsx(CardContent, { children: _jsx(List, Object.assign({ className: classes.list }, { children: [...Array(4)].map((person, index) => (_jsx(ListItem, { children: _jsx(UserSkeleton, { elevation: 0 }) }, index))) })) }) }))); }