UNPKG

@selfcommunity/react-ui

Version:

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

42 lines (41 loc) 961 B
import { SCFeedObjectType, SCPollType } from '@selfcommunity/types'; export interface PollObjectProps { /** * Overrides or extends the styles applied to the component. * @default null */ className?: string; /** * Poll object */ pollObject: SCPollType; /** * If `false`, the poll is not votable * @default false */ disabled?: boolean; /** * If `false`, the poll is collapsed * @default false */ visible?: boolean; /** * Callback to sync poll obj of the feedObject * @param value */ onChange?: (value: any) => void; /** * Callback onToggle poll visibility * @param value */ onToggleVisibility?: (visible: any) => void; /** * Feed object */ feedObject?: SCFeedObjectType; /** * Any other properties */ [p: string]: any; } export default function PollObject(props: PollObjectProps): JSX.Element;