Skip to main content

EventHeader

Interfaces

EventHeaderProps

Indexable

[p: string]: any

Properties

PropertyTypeDescription
EventActionsProps?Omit<EventActionsMenuProps, "event">Props to spread event actions menu

Default
{}
EventSubscribeButtonProps?EventSubscribeButtonPropsProps to spread event button

Default
{}
className?stringOverrides or extends the styles applied to the component.

Default
null
event?SCEventTypeEvent Object

Default
null
eventId?numberId of the event

Default
null
id?stringId of event object

Default
null

Functions

EventHeader()

EventHeader(inProps): JSX.Element

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

This component renders the events top section.

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCEventHeader-rootStyles applied to the root element.
cover.SCEventHeader-coverStyles applied to the cover element.
time.SCEventHeader-timeStyles applied to the time element.
calendar.SCEventHeader-calendarStyles applied to the calendar element.
infoSCEventHeader-infoStyles applied to the info section.
nameSCEventHeader-usernameStyles applied to the username element.
visibilitySCEventHeader-visibilityStyles applied to the visibility section.
visibilityItemSCEventHeader-visibility-itemStyles applied to the visibility element.
multiActionsSCEventHeader-multi-actionStyles applied to the multi actions section.

Parameters

ParameterTypeDescription
inPropsEventHeaderProps

Returns

JSX.Element

Source

packages/react-ui/src/components/EventHeader/EventHeader.tsx:124


EventHeaderSkeleton()

EventHeaderSkeleton(): JSX.Element

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

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCEventHeader-skeleton-rootStyles applied to the root element.
avatar.SCEventHeader-avatarStyles applied to the avatar element.
cover.SCEventHeader-coverStyles applied to the cover element.
info.SCEventHeader-infoStyles applied to the info info.

Returns

JSX.Element

Source

packages/react-ui/src/components/EventHeader/Skeleton.tsx:43