UNPKG

react-leaf-polls

Version:

Customizable set of poll components for react.

10 lines (9 loc) 465 B
/// <reference types="react" /> import { BinaryPollProps } from './components/BinaryPoll/BinaryPoll'; import { MultiplePollProps } from './components/MultiplePoll/MultiplePoll'; import { Result } from './types/result'; interface Props extends BinaryPollProps, MultiplePollProps { type: 'binary' | 'multiple'; } declare const LeafPoll: ({ type, question, results, theme, onVote, isVoted, isVotedId }: Props) => JSX.Element; export { LeafPoll, Result };