UNPKG

@selfcommunity/react-ui

Version:

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

44 lines (37 loc) 1.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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("@mui/material/Skeleton")); const material_1 = require("@mui/material"); const constants_1 = require("./constants"); const classes = { root: `${constants_1.PREFIX}-skeleton-root`, title: `${constants_1.PREFIX}-title`, avatar: `${constants_1.PREFIX}-avatar`, content: `${constants_1.PREFIX}-content`, actions: `${constants_1.PREFIX}-actions` }; const Root = (0, styles_1.styled)(material_1.Box, { name: constants_1.PREFIX, slot: 'SkeletonRoot' })(() => ({})); /** * > API documentation for the Community-JS Composer Skeleton component. Learn about the available props and the CSS API. #### Import ```jsx import {ComposerSkeleton} from '@selfcommunity/react-ui'; ``` #### Component Name The name `SCComposerSkeleton` can be used when providing style overrides in the theme. #### CSS |Rule Name|Global class|Description| |---|---|---| |root|.SCComposerSkeleton-root|Styles applied to the root element.| * */ function ComposerSkeleton() { return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: classes.root }, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { sx: { height: 190 }, animation: "wave", variant: "rectangular" }) }))); } exports.default = ComposerSkeleton;