@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
37 lines (30 loc) • 1.39 kB
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import Widget from '../Widget';
import { styled } from '@mui/material/styles';
import Skeleton from '@mui/material/Skeleton';
import { CardContent } from '@mui/material';
const PREFIX = 'SCGenericSkeleton';
const classes = {
root: `${PREFIX}-root`,
list: `${PREFIX}-list`
};
const Root = styled(Widget)(({ theme }) => ({}));
/**
* > API documentation for the Community-JS Generic Skeleton component. Learn about the available props and the CSS API.
#### Import
```jsx
import {GenericSkeleton} from '@selfcommunity/react-ui';
```
#### Component Name
The name `SCGenericSkeleton` can be used when providing style overrides in the theme.
#### CSS
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCGenericSkeleton-root|Styles applied to the root element.|
|list|.SCGenericSkeleton-list|Styles applied to the list element.|
*
*/
function GenericSkeleton(props) {
return (_jsx(Root, Object.assign({ className: classes.root }, props, { children: _jsxs(CardContent, { children: [_jsx(Skeleton, { animation: "wave", height: 10, style: { marginBottom: 10 } }), _jsx(Skeleton, { animation: "wave", height: 10, width: "80%", style: { marginBottom: 5 } }), _jsx(Skeleton, { animation: "wave", height: 10, width: "60%", style: { marginBottom: 5 } })] }) })));
}
export default GenericSkeleton;