Skip to main content

LiveStream

Interfaces

LiveStreamProps

API documentation for the Community-JS Widget component. Learn about the available props and the CSS API.

Import

import {Widget} from '@selfcommunity/react-ui';

Component Name

The name SCWidget can be used when providing style overrides in the theme.

CSS

Rule NameGlobal classDescription
root.SCWidget-rootStyles applied to the root element.

Extends

Indexable

[p: string]: any

Any other properties

Properties

PropertyTypeDescriptionInherited from
actions?ReactNodeActions Default null-
className?stringOverrides or extends the styles applied to the component. Default nullWidgetProps.className
hideInProgress?booleanHide in progress Default false-
hideLiveStreamHost?booleanHide liveStream planner Default false-
liveStream?SCLiveStreamTypeEvent Object Default null-
liveStreamId?numberId of the liveStream for filter the feed Default null-
LiveStreamSkeletonComponentProps?LiveStreamSkeletonPropsProps to spread to EventSkeleton component Default {}-
template?SCLiveStreamTemplateTypeEvent template type Default 'preview'-

LiveStreamSkeletonProps

API documentation for the Community-JS Widget component. Learn about the available props and the CSS API.

Import

import {Widget} from '@selfcommunity/react-ui';

Component Name

The name SCWidget can be used when providing style overrides in the theme.

CSS

Rule NameGlobal classDescription
root.SCWidget-rootStyles applied to the root element.

Extends

Indexable

[p: string]: any

Other props

Properties

PropertyTypeDescriptionOverrides
actions?ReactNodeProp to pass an action to be rendered next to the skeleton-
className?stringOverrides or extends the styles applied to the component. Default nullWidgetProps.className
skeletonsAnimation?false | "wave" | "pulse"Disable skeleton animation-
template?SCLiveStreamTemplateTypeLiveStream template type Default 'preview'-

Functions

LiveStream()

LiveStream(inProps): Element

API documentation for the Community-JS Live Stream component. Learn about the available props and the CSS API.

This component renders an liveStream item. Take a look at our demo component here

Import

import {liveStream} from '@selfcommunity/react-ui';

Component Name

The name SCLiveStream can be used when providing style overrides in the theme.

CSS

Rule NameGlobal classDescription
root.SCLiveStream-rootStyles applied to the root element.
avatar.SCLiveStream-avatarStyles applied to the avatar element.
primary.SCLiveStream-primaryStyles applied to the primary item element section
secondary.SCLiveStream-secondaryStyles applied to the secondary item element section
actions.SCLiveStream-actionsStyles applied to the actions section.

Parameters

ParameterTypeDescription
inPropsLiveStreamProps

Returns

Element


LiveStreamSkeleton()

LiveStreamSkeleton(inProps): Element

API documentation for the Community-JS LiveStream Skeleton component. Learn about the available props and the CSS API.

Import

import {LiveStreamSkeleton} from '@selfcommunity/react-ui';

Component Name

The name SCLiveStream-skeleton-root can be used when providing style overrides in the theme.

CSS

Rule NameGlobal classDescription
root.SCLiveStream-skeleton-rootStyles applied to the root element.
image.SCLiveStream-skeleton-imageStyles applied to the image element.
action.SCLiveStream-skeleton-actionStyles applied to action section.

Parameters

ParameterType
inPropsLiveStreamSkeletonProps

Returns

Element