Skip to main content

Module: PollSuggestionWidget

Interfaces

Functions

PollSuggestionWidget

PollSuggestionWidget(inProps): JSX.Element

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

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

Import

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

Component Name

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

CSS

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

Parameters

NameType
inPropsPollSuggestionWidgetProps

Returns

JSX.Element

Defined in

packages/react-ui/src/components/PollSuggestionWidget/PollSuggestionWidget.tsx:110


PollSuggestionWidgetSkeleton

PollSuggestionWidgetSkeleton(props): JSX.Element

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

Import

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

Component Name

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

CSS

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

Parameters

NameType
propsany

Returns

JSX.Element

Defined in

packages/react-ui/src/components/PollSuggestionWidget/Skeleton.tsx:40