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 Name | Global class | Description |
---|---|---|
root | .SCPollSuggestionWidget-root | Styles applied to the root element. |
title | .SCPollSuggestionWidget-title | Styles applied to the title element. |
noResults | .SCPollSuggestionWidget-no-results | Styles applied to no results section. |
showMore | .SCPollSuggestionWidget-show-more | Styles applied to show more button element. |
dialogRoot | .SCPollSuggestionWidget-dialog-root | Styles applied to the root dialog element. |
endMessage | .SCPollSuggestionWidget-end-message | Styles applied to the end message element. |
pollSnippet | .SCPollSuggestionWidget-poll-snippet | Styles applied to the poll snippet element. |
Parameters
Name | Type |
---|---|
inProps | PollSuggestionWidgetProps |
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 Name | Global class | Description |
---|---|---|
root | .SCPollSuggestionWidget-skeleton-root | Styles applied to the root element. |
list | .SCPollSuggestionWidget-list | Styles applied to the list element. |
Parameters
Name | Type |
---|---|
props | any |
Returns
JSX.Element
Defined in
packages/react-ui/src/components/PollSuggestionWidget/Skeleton.tsx:40