UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

50 lines (49 loc) 1.11 kB
import { SCContributionType, SCFeedObjectType } from '@selfcommunity/types'; export interface VoteProps { /** * Overrides or extends the styles applied to the component. * @default null */ className?: string; /** * Feed object id * @default null */ feedObjectId?: number; /** * Feed object * @default null */ feedObject?: SCFeedObjectType; /** * Feed object type * @default 'post' type */ feedObjectType?: Exclude<SCContributionType, SCContributionType.COMMENT>; /** * Show audience. * @default true */ withAudience?: boolean; /** * Show action * @default true */ withAction?: boolean; /** * Inline action layout. * Action will be align with the audience button. * @default true */ inlineAction?: boolean; /** * Handles action vote click * @default null */ onVoteAction?: (data: any) => any; /** * Any other properties */ [p: string]: any; } export default function Vote(props: VoteProps): JSX.Element;