UNPKG

@selfcommunity/react-ui

Version:

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

41 lines (34 loc) 1.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PREFIX = void 0; const tslib_1 = require("tslib"); const jsx_runtime_1 = require("react/jsx-runtime"); const styles_1 = require("@mui/material/styles"); const Skeleton_1 = tslib_1.__importDefault(require("../Category/Skeleton")); const material_1 = require("@mui/material"); exports.PREFIX = 'SCDefaultDrawerSkeleton'; const classes = { root: `${exports.PREFIX}-skeleton-root` }; const Root = (0, styles_1.styled)(material_1.Box, { name: exports.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.| * */ function DefaultDrawerSkeleton(props) { return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, props, { children: [...Array(5)].map((category, index) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { elevation: 0, actions: null }) }, index))) }))); } exports.default = DefaultDrawerSkeleton;