@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
36 lines (29 loc) • 1.16 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { styled } from '@mui/material/styles';
import CategorySkeleton from '../Category/Skeleton';
import { Box, ListItem } from '@mui/material';
export const PREFIX = 'SCDefaultDrawerSkeleton';
const classes = {
root: `${PREFIX}-skeleton-root`
};
const Root = styled(Box, {
name: PREFIX,
slot: 'root'
})(() => ({}));
/**
* > API documentation for the Community-JS Default Drawer Skeleton component. Learn about the available props and the CSS API.
#### Import
```jsx
import {SCDefaultDrawerSkeleton} from '@selfcommunity/react-ui';
```
#### Component Name
The name `SCDefaultDrawerSkeleton-root` can be used when providing style overrides in the theme.
#### CSS
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCDefaultDrawerSkeleton-root|Styles applied to the root element.|
*
*/
export default function DefaultDrawerSkeleton(props) {
return (_jsx(Root, Object.assign({ className: classes.root }, props, { children: [...Array(5)].map((category, index) => (_jsx(ListItem, { children: _jsx(CategorySkeleton, { elevation: 0, actions: null }) }, index))) })));
}