Skip to main content

VoteAudienceButton

Interfaces

VoteAudienceButtonProps

Extends

  • Pick<LoadingButtonProps, Exclude<keyof LoadingButtonProps, "onClick" | "disabled" | "loading">>

Indexable

[p: string]: any

Properties

PropertyTypeDescription
contribution?SCCommentType | SCFeedObjectTypeContribution object to vote

Default
null
contributionIdnumberId of the contribution object to vote

Default
null
contributionTypeSCContributionTypeType of the contribution object to vote

Default
null

Functions

VoteAudienceButton()

VoteAudienceButton(inProps): JSX.Element

API documentation for the Community-JS Vote Audience Button component. Learn about the available props and the CSS API.

Import

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

Component Name

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

CSS

Rule NameGlobal classDescription
root.SCVoteAudienceButton-rootStyles applied to the root element.
reactionList.SCVoteAudienceButton-reactionsStyles applied to the reactionList list element.
dialogRoot.SCVoteAudienceButton-dialog-rootStyles applied to the dialog root element.
dialogTabs.SCVoteAudienceButton-dialog-tabsStyles applied to the tabs element.
dialogVoteBadge.SCVoteAudienceButton-dialog-vote-badgeStyles applied to the vote badge element.

Parameters

ParameterTypeDescription
inPropsVoteAudienceButtonProps

Returns

JSX.Element

Source

packages/react-ui/src/components/VoteAudienceButton/VoteAudienceButton.tsx:86