Skip to main content

Module: UserSuggestionWidget

Interfaces

Functions

UserSuggestionWidget

UserSuggestionWidget(inProps): JSX.Element

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

This component renders a list of suggested users. Take a look at our demo component here

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCUserSuggestionWidget-rootStyles applied to the root element.
title.SCUserSuggestionWidget-titleStyles applied to the title element.
noResults.SCUserSuggestionWidget-no-resultsStyles applied to no results section.
showMore.SCUserSuggestionWidget-show-moreStyles applied to show more button element.
dialogRoot.SCUserSuggestionWidget-dialog-rootStyles applied to the root dialog element.
endMessage.SCUserSuggestionWidget-end-messageStyles applied to the end message element.

Parameters

NameType
inPropsUserSuggestionWidgetProps

Returns

JSX.Element

Defined in

packages/react-ui/src/components/UserSuggestionWidget/UserSuggestionWidget.tsx:115


UserSuggestionWidgetSkeleton

UserSuggestionWidgetSkeleton(props): JSX.Element

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

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCUserSuggestionWidget-skeleton-rootStyles applied to the root element.
list.SCUserSuggestionWidget-listStyles applied to the list element.

Parameters

NameType
propsany

Returns

JSX.Element

Defined in

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