Skip to Content
Hooks

Overview

Reusable React hooks for common patterns.

Browse all available Kiva UI hooks.

Available Hooks

HookDescription
useClickOutsideuseClickOutside hook.
useDateFormatProvider-agnostic date / datetime / time formatting context for Kiva UI components. Wired automatically by KivaTenantProvider, but works with any date library.
useNumberFormatProvider-agnostic number formatting context for Kiva UI components. Mirror of useDateFormat — wired automatically by KivaTenantProvider, but works with any number formatting library.
useUiTranslationuseUiTranslation hook.
useAdaptiveCardHeadless state, validation, visibility, and action dispatch for the Adaptive Cards 1.5 renderer. Drives the AdaptiveCard component and is exported so consumers can wire custom toolbars or server-side validation.
useDataExportProject an in-memory array of rows through a column definition and trigger a browser download as CSV, JSON, Markdown, or XLSX.
useDynamicFormViewBackend-agnostic dynamic form renderer — the sibling of useKivaFormView with no Kiva wiring. Supply fields, values, options, and an onSubmit sink to render create/edit/view forms against any backend.
useKivaAdaptiveCardItemDetailGenerate an Adaptive Card JSON payload from a Kiva field list + a single record — mapping Kiva field types onto the Adaptive Cards element vocabulary — and render it with the shared AdaptiveCard renderer.
useKivaAdaptiveCardItemListGenerate an array of Adaptive Card JSON payloads from a Kiva field list + many records, and render them as a responsive grid, a stacked list, or a single Carousel card with the shared AdaptiveCard renderer.
useKivaAgentAttachmentsuseKivaAgentAttachments hook.
useKivaAgentInfouseKivaAgentInfo hook.
useKivaAgentMemoriesuseKivaAgentMemories hook.
useKivaAgentMemoryCandidatesuseKivaAgentMemoryCandidates hook.
useKivaAgentProjectsuseKivaAgentProjects hook.
useKivaAgentThreadsuseKivaAgentThreads hook.
useKivaCalendarWire a Kiva data source to a fully configured calendar with auto-detected date / title / user fields, view-aware date-range fetching, color mapping, and drag-and-drop persistence.
useKivaContactActivityMerge a Kiva record's audit log, threaded comments, related events, tasks, and status updates into one timeline for <ContactActivityPanel />, plus comment and status mutations.
useKivaContactChannelsuseKivaContactChannels hook.
useKivaDataExportServer-side export for Kiva data sources — POSTs a query payload to the export edge function and streams the result file straight to the browser.
useKivaDataGalleryOne-call wiring of a Kiva data source to a fully configured DataGallery + toolbar (DataGridViewSelect, search, filters, sort, group, gallery display menu, card config menu) — including row fetching, saved views, pivot filters, and automatic card field detection.
useKivaDataGridOne-call wiring of a Kiva data source to a fully configured DataGrid + toolbar (DataGridViewSelect, search, filters, group, sort, row height, display) — including row fetching with view-derived query parameters.
useKivaDataImportWizardOne-call wiring of a Kiva data source to the DataImportWizard — handles upload, analyse, mapping, preview, and import in a single guided flow.
useKivaDataSourceJsonSchemaGenerate a JSON Schema (object schema, properties keyed by field slug) from a Kiva data source field list.
useKivaDataTableOne-call wiring of a Kiva data source to a fully configured DataTable + toolbar (DataGridViewSelect, search, filters, group, sort) — including row fetching with view-derived query parameters and an optional side-panel filter rail.
useKivaDataViewSelectFetch data source fields and saved views from Kiva and wire them into DataGridViewSelect with a single hook.
useKivaDummyDataGeneratorWizardOne-call wiring of a Kiva data source to the DummyDataGenerator — handles field-aware strategies, deterministic generation, preview, and batch insert in a single guided flow.
useKivaEmailComposerWire an <EmailComposer /> to the Kiva messaging API — loads sender accounts, lets the user pick a From address, and ships emails through /v1/messaging/email/accounts/{id}/send.
useKivaFieldComponentResolve the right UI component (form input, value renderer, data-grid cell, editable value, or TanStack column def builder) for any Kiva data source field type.
useKivaFormViewOne-call wiring of a Kiva data source item to create, edit, and read-only layouts with shared field-component mapping, item loading, option hydration, and submit handling.
useKivaHostAppearanceFollow the Kiva shell's colour mode and language from inside an embedded app, so a theme or language switch in the shell reaches the app it is hosting.
useKivaInstantMessageComposeruseKivaInstantMessageComposer hook.
useKivaInventoryShared app-utils inventory cache for Kiva metadata (apps, data sources with fields/enums/views/forms, users, brands, preferences) plus a post-sign-in load() warm-up hook that drives an application loading dialog.
useKivaKanbanOne-call wiring of a Kiva data source to a fully configured Kanban board with select/status/radio-group, user, and date columns, drag-to-update persistence, final-zone integration, and a standard Kiva card layout.
useKivaLogActivityuseKivaLogActivity hook.
useKivaMapViewBuild Kiva-backed map pages from a locationSelect field with saved views, marker models, and ready-to-render Leaflet or Google Maps canvases.
useKivaPivotCalendarWires the PivotCalendar component to a Kiva data source using the items endpoint's pivot parameter for server-side aggregation.
useKivaPivotFilterWire a Kiva data source to a <PivotFilter> strip — auto-detects the field type, runs a pivot/aggregate query, transforms results into pill items, and emits filter rules ready to merge into a grid query.
useKivaPivotGridWires the PivotGrid component to a Kiva data source with optional server-side aggregation via pivot.matrix + calculations.
useKivaTenantSingle-line tenant integration that fetches tenant preferences, builds dateUtils + numberUtils, and wires DateFormatProvider + NumberFormatProvider so every UI component (data grids, calendars, filters, value renderers) picks up the tenant's configured date/time/number formats automatically.
useLocalDataSourceDataGridWire a LocalDataSource object into the Kiva DataGrid hook stack, including toolbar search, filters, sorting, grouping, saved views, and local CRUD.
useLocalDataSourceCreate an in-memory Kiva-compatible data source from a JSON array, with local CRUD and Kiva-style query parameters.
useParameterPersistenceuseParameterPersistence hook.
useSpeechRecognitionuseSpeechRecognition hook.

On this page