@selfcommunity/react-ui
Version:
React UI Components to integrate a Community created with SelfCommunity Platform.
47 lines (40 loc) • 1.31 kB
TypeScript
import React from 'react';
import { SCEventTemplateType } from '../../types/event';
import { WidgetProps } from '../Widget';
export interface EventSkeletonProps extends WidgetProps {
/**
* Overrides or extends the styles applied to the component.
* @default null
*/
className?: string;
/**
* Event template type
* @default 'preview'
*/
template?: SCEventTemplateType;
/**
* Disable skeleton animation
*/
skeletonsAnimation?: false | 'wave' | 'pulse';
/**
* Prop to pass an action to be rendered next to the skeleton
*/
actions?: React.ReactNode;
}
/**
* > API documentation for the Community-JS Event Skeleton component. Learn about the available props and the CSS API.
#### Import
```jsx
import {EventSkeleton} from '@selfcommunity/react-ui';
```
#### Component Name
The name `SCEvent-skeleton-root` can be used when providing style overrides in the theme.
#### CSS
|Rule Name|Global class|Description|
|---|---|---|
|root|.SCEvent-skeleton-root|Styles applied to the root element.|
|image|.SCEvent-skeleton-image|Styles applied to the image element.|
|action|.SCEvent-skeleton-action|Styles applied to action section.|
*
*/
export default function EventSkeleton(inProps: EventSkeletonProps): JSX.Element;