Givebear LogoGivebear

Configuration Reference

All configuration fields for Givebear SDK widgets.

Required

FieldTypeDescription
organizationIdstringThe organization's UUID from your Givebear dashboard. Required on all widgets.

All widgets

FieldTypeDefaultDescription
orgIdstringShorthand alias for organizationId.
fundIdstringUUID of a specific fund. Leave unset for organization-level giving.
campaignIdstringUUID of an active campaign. Do not combine with fundId.
accentColorstring#387a4bAny valid CSS color. Use a value that passes contrast checks against white.
theme"auto" | "light" | "dark""auto""auto" follows prefers-color-scheme on the host page.

Button and card

FieldTypeDefaultDescription
buttonTextstring"Donate"Label on the donate button.

Inline embed

FieldTypeDefaultDescription
placement"inline" | "modal""inline"Whether the form renders on the page or in a floating modal.

Prayer times

FieldTypeDefaultDescription
mode"full" | "card" | "strip""full"full lists all prayers; card highlights the next prayer; strip is a compact horizontal row.
timeFormat"12h" | "24h"browser localeOverride the displayed time format.

Calendar

FieldTypeDefaultDescription
mode"list" | "compact" | "next""list"list shows the full calendar; compact is a denser view; next shows only the single upcoming event.
categorystringFilter to a single event category, e.g. "service" or "fundraiser".
traditionstringFilter to a tradition, e.g. "sunni" or "shia".
limitnumberMaximum number of events to return.
cacheKeynumber | stringAppend to cache-bust the events API. Useful for forcing a fresh fetch after edits.

Data attribute equivalents

All config fields have data- attribute equivalents for auto-mount. camelCase fields become kebab-case:

Config fieldData attribute
organizationIddata-organization-id
fundIddata-fund-id
campaignIddata-campaign-id
accentColordata-accent-color
themedata-theme
buttonTextdata-button-text
placementdata-placement
modedata-mode
timeFormatdata-time-format
categorydata-category
traditiondata-tradition
limitdata-limit

Where to find your IDs

  • Organization ID: Givebear dashboard → Settings → scroll to the bottom. It is a UUID like 3f4a1b2c-....
  • Fund ID: Givebear dashboard → Funds → click a fund → the ID appears in the URL and on the fund settings page.
  • Campaign ID: Givebear dashboard → Campaigns → click a campaign → the ID appears in the URL.

On this page