@orangecheck/vote-react / OcPollProps
Interface: OcPollProps
Defined in: poll.tsx:21
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
<a id="property-baseurl"></a> baseUrl? | string | Override /api/tally origin. Default https://vote.ochk.io. | poll.tsx:27 |
<a id="property-classname"></a> className? | string | Extra class on the outer element. | poll.tsx:33 |
<a id="property-hidecta"></a> hideCta? | boolean | Hide the "cast a ballot" CTA (read-only mode). | poll.tsx:37 |
<a id="property-initialdata"></a> initialData? | TallyResponse | SSR-hydrated initial data. | poll.tsx:31 |
<a id="property-pollid"></a> pollId | string | 64-hex poll id. | poll.tsx:23 |
<a id="property-refreshms"></a> refreshMs? | number | Auto-refresh interval in ms. Default 60000. Set to 0 to disable. | poll.tsx:29 |
<a id="property-style"></a> style? | CSSProperties | Inline style override. | poll.tsx:35 |
<a id="property-theme"></a> theme? | "light" | "dark" | Theme. Default light. | poll.tsx:25 |