live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/vote-react


@orangecheck/vote-react / OcPollProps

Interface: OcPollProps

Defined in: poll.tsx:21

Properties

PropertyTypeDescriptionDefined in
<a id="property-baseurl"></a> baseUrl?stringOverride /api/tally origin. Default https://vote.ochk.io.poll.tsx:27
<a id="property-classname"></a> className?stringExtra class on the outer element.poll.tsx:33
<a id="property-hidecta"></a> hideCta?booleanHide the "cast a ballot" CTA (read-only mode).poll.tsx:37
<a id="property-initialdata"></a> initialData?TallyResponseSSR-hydrated initial data.poll.tsx:31
<a id="property-pollid"></a> pollIdstring64-hex poll id.poll.tsx:23
<a id="property-refreshms"></a> refreshMs?numberAuto-refresh interval in ms. Default 60000. Set to 0 to disable.poll.tsx:29
<a id="property-style"></a> style?CSSPropertiesInline style override.poll.tsx:35
<a id="property-theme"></a> theme?"light" | "dark"Theme. Default light.poll.tsx:25