UNPKG

react-leaf-polls

Version:

Customizable set of poll components for react.

13 lines (12 loc) 459 B
/// <reference types="react" /> import type { Result } from '../../types/result'; import type { Theme } from '../../types/theme'; interface BinaryPollProps { question?: string; results: Result[]; theme?: Theme; isVoted?: boolean; onVote?(item: Result, results: Result[]): void; } declare const BinaryPoll: ({ question, results, theme, onVote, isVoted }: BinaryPollProps) => JSX.Element; export { BinaryPoll, BinaryPollProps };