UNPKG

@selfcommunity/react-ui

Version:

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

38 lines (31 loc) 1.62 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { styled } from '@mui/material/styles'; import { PREFIX } from './constants'; import Widget from '../Widget'; import { Box, CardContent, Skeleton } from '@mui/material'; const classes = { root: `${PREFIX}-skeleton-root`, map: `${PREFIX}-skeleton-map` }; const Root = styled(Widget, { name: PREFIX, slot: 'SkeletonRoot' })(() => ({})); /** * > API documentation for the Community-JS Group Info Widget Skeleton component. Learn about the available props and the CSS API. #### Import ```jsx import {EventLocationWidgetSkeleton} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCEventLocationWidgetSkeleton-skeleton-root` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCEventLocationWidgetSkeleton-skeleton-root|Styles applied to the root element.| |root|.SCEventLocationWidgetSkeleton-skeleton-map|Styles applied to the map element.| * */ export default function EventLocationWidgetSkeleton() { return (_jsx(Root, Object.assign({ className: classes.root }, { children: _jsxs(CardContent, { children: [_jsx(Skeleton, { animation: "wave", height: 30, width: "20%", variant: 'text' }), _jsx(Box, Object.assign({ className: classes.map }, { children: _jsx(Skeleton, { variant: "rectangular", animation: "wave", height: '100%', width: '100%' }) })), _jsx(Skeleton, { animation: "wave", height: 20, width: "30%", variant: 'text' }), _jsx(Skeleton, { animation: "wave", height: 20, width: "40%", variant: 'text' })] }) }))); }