@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
46 lines (39 loc) • 1.99 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const material_1 = require("@mui/material");
const styles_1 = require("@mui/material/styles");
const Skeleton_1 = tslib_1.__importDefault(require("@mui/material/Skeleton"));
const constants_1 = require("./constants");
const classes = {
root: `${constants_1.PREFIX}-skeleton-root`,
logo: `${constants_1.PREFIX}-logo`,
navigation: `${constants_1.PREFIX}-navigation`,
avatar: `${constants_1.PREFIX}-avatar`
};
const Root = (0, styles_1.styled)(material_1.Toolbar, {
name: constants_1.PREFIX,
slot: 'SkeletonRoot'
})(() => ({}));
/**
* > API documentation for the Community-JS Navigation Toolbar Skeleton component. Learn about the available props and the CSS API.
#### Import
```jsx
import {MobileHeaderSkeleton} from '@selfcommunity/react-ui';
```
#### Component Name
The name `SCNavigationToolbar-skeleton-root` can be used when providing style overrides in the theme.
#### CSS
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCNavigationToolbar-skeleton-root|Styles applied to the root element.|
|logo|.SCNavigationToolbar-logo|Styles applied to the logo element.|
|navigation|.SCNavigationToolbar-navigation|Styles applied to the navigation element.|
|avatar|.SCNavigationToolbar-avatar|Styles applied to the avatar element.|
*
*/
function NavigationToolbarSkeleton() {
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { className: classes.logo, animation: "wave", variant: "rectangular" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { className: classes.navigation, animation: "wave", variant: "rectangular" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { className: classes.avatar, animation: "wave", variant: "rounded" })] })));
}
exports.default = NavigationToolbarSkeleton;
;