Skip to main content

Module: Notification

Interfaces

Functions

NotificationSkeleton

NotificationSkeleton(props): JSX.Element

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

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCNotification-skeleton-rootStyles applied to the root element.

Parameters

NameType
propsany

Returns

JSX.Element

Defined in

packages/react-ui/src/components/Notification/Skeleton.tsx:39


UserNotification

UserNotification(inProps): JSX.Element

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

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCNotification-rootStyles applied to the root element.
content.SCNotification-notification-wrapStyles applied to the element wrap.
header.SCNotification-notification-wrapStyles applied to the notification header.
title.SCNotification-titleStyles applied to the title element in the notification header.
image.SCNotification-imageStyles applied to the image element in the notification header.
username.SCNotification-usernameStyles applied to the user element in the notification header.
content.SCNotification-notification-contentStyles applied to the notification content.
unCollapsed.SCNotification-notification-wrapStyles applied to the uncollapsed elements.
collapsed.SCNotification-notification-wrapStyles applied to the collapsed elements.
stopButton.SCNotification-stop-notification-buttonStyles applied to the stop notification button.
showOtherAggregated.SCNotification-show-other-aggregatedStyles applied to the show other aggregated element.

Parameters

NameType
inPropsNotificationProps

Returns

JSX.Element

Defined in

packages/react-ui/src/components/Notification/Notification.tsx:151