UNPKG

@selfcommunity/react-ui

Version:

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

40 lines (33 loc) 1.42 kB
import { jsx as _jsx } from "react/jsx-runtime"; import CardContent from '@mui/material/CardContent'; import List from '@mui/material/List'; import { styled } from '@mui/material/styles'; import { IncubatorSkeleton } from '../Incubator'; import Widget from '../Widget'; 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 Incubator List Skeleton component. Learn about the available props and the CSS API. #### Import ```jsx import {IncubatorListWidgetSkeleton} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCIncubatorListWidget-skeleton-root` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCIncubatorListWidget-skeleton-root-root|Styles applied to the root element.| |list|.SCIncubatorListWidget-list|Styles applied to the list element.| * */ export default function IncubatorListWidgetSkeleton(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((category, index) => (_jsx(IncubatorSkeleton, { elevation: 0 }, index))) })) }) }))); }