# Overview URL: /docs/web/hooks Reusable React hooks for common patterns. Browse all available Kiva UI hooks. ## Available Hooks | Hook | Description | |-----------|-------------| | [useClickOutside](/docs/web/hooks/use-click-outside) | useClickOutside hook. | | [useDateFormat](/docs/web/hooks/use-date-format) | Provider-agnostic date / datetime / time formatting context for Kiva UI components. Wired automatically by KivaTenantProvider, but works with any date library. | | [useNumberFormat](/docs/web/hooks/use-number-format) | Provider-agnostic number formatting context for Kiva UI components. Mirror of useDateFormat — wired automatically by KivaTenantProvider, but works with any number formatting library. | | [useUiTranslation](/docs/web/hooks/use-ui-translation) | useUiTranslation hook. | | [useAdaptiveCard](/docs/web/hooks/use-adaptive-card) | Headless 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. | | [useDataExport](/docs/web/hooks/use-data-export) | Project an in-memory array of rows through a column definition and trigger a browser download as CSV, JSON, Markdown, or XLSX. | | [useDynamicFormView](/docs/web/hooks/use-dynamic-form-view) | Backend-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. | | [useKivaAdaptiveCardItemDetail](/docs/web/hooks/use-kiva-adaptive-card-item-detail) | Generate 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. | | [useKivaAdaptiveCardItemList](/docs/web/hooks/use-kiva-adaptive-card-item-list) | Generate 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. | | [useKivaAgentAttachments](/docs/web/hooks/use-kiva-agent-attachments) | useKivaAgentAttachments hook. | | [useKivaAgentInfo](/docs/web/hooks/use-kiva-agent-info) | useKivaAgentInfo hook. | | [useKivaAgentMemories](/docs/web/hooks/use-kiva-agent-memories) | useKivaAgentMemories hook. | | [useKivaAgentMemoryCandidates](/docs/web/hooks/use-kiva-agent-memory-candidates) | useKivaAgentMemoryCandidates hook. | | [useKivaAgentProjects](/docs/web/hooks/use-kiva-agent-projects) | useKivaAgentProjects hook. | | [useKivaAgentThreads](/docs/web/hooks/use-kiva-agent-threads) | useKivaAgentThreads hook. | | [useKivaCalendar](/docs/web/hooks/use-kiva-calendar) | Wire 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. | | [useKivaContactActivity](/docs/web/hooks/use-kiva-contact-activity) | Merge a Kiva record's audit log, threaded comments, related events, tasks, and status updates into one timeline for ``, plus comment and status mutations. | | [useKivaContactChannels](/docs/web/hooks/use-kiva-contact-channels) | useKivaContactChannels hook. | | [useKivaDataExport](/docs/web/hooks/use-kiva-data-export) | Server-side export for Kiva data sources — POSTs a query payload to the export edge function and streams the result file straight to the browser. | | [useKivaDataGallery](/docs/web/hooks/use-kiva-data-gallery) | One-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. | | [useKivaDataGrid](/docs/web/hooks/use-kiva-data-grid) | One-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. | | [useKivaDataImportWizard](/docs/web/hooks/use-kiva-data-import-wizard) | One-call wiring of a Kiva data source to the DataImportWizard — handles upload, analyse, mapping, preview, and import in a single guided flow. | | [useKivaDataSourceJsonSchema](/docs/web/hooks/use-kiva-data-source-json-schema) | Generate a JSON Schema (object schema, properties keyed by field slug) from a Kiva data source field list. | | [useKivaDataTable](/docs/web/hooks/use-kiva-data-table) | One-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. | | [useKivaDataViewSelect](/docs/web/hooks/use-kiva-data-view-select) | Fetch data source fields and saved views from Kiva and wire them into DataGridViewSelect with a single hook. | | [useKivaDummyDataGeneratorWizard](/docs/web/hooks/use-kiva-dummy-data-generator-wizard) | One-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. | | [useKivaEmailComposer](/docs/web/hooks/use-kiva-email-composer) | Wire an ```` 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`. | | [useKivaFieldComponent](/docs/web/hooks/use-kiva-field-component) | Resolve 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. | | [useKivaFormView](/docs/web/hooks/use-kiva-form-view) | One-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. | | [useKivaHostAppearance](/docs/web/hooks/use-kiva-host-appearance) | Follow 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. | | [useKivaInstantMessageComposer](/docs/web/hooks/use-kiva-instant-message-composer) | useKivaInstantMessageComposer hook. | | [useKivaInventory](/docs/web/hooks/use-kiva-inventory) | Shared 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. | | [useKivaKanban](/docs/web/hooks/use-kiva-kanban) | One-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. | | [useKivaLogActivity](/docs/web/hooks/use-kiva-log-activity) | useKivaLogActivity hook. | | [useKivaMapView](/docs/web/hooks/use-kiva-map-view) | Build Kiva-backed map pages from a locationSelect field with saved views, marker models, and ready-to-render Leaflet or Google Maps canvases. | | [useKivaPivotCalendar](/docs/web/hooks/use-kiva-pivot-calendar) | Wires the PivotCalendar component to a Kiva data source using the items endpoint's pivot parameter for server-side aggregation. | | [useKivaPivotFilter](/docs/web/hooks/use-kiva-pivot-filter) | Wire a Kiva data source to a ```` 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. | | [useKivaPivotGrid](/docs/web/hooks/use-kiva-pivot-grid) | Wires the PivotGrid component to a Kiva data source with optional server-side aggregation via pivot.matrix + calculations. | | [useKivaTenant](/docs/web/hooks/use-kiva-tenant) | Single-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. | | [useLocalDataSourceDataGrid](/docs/web/hooks/use-local-data-source-data-grid) | Wire a LocalDataSource object into the Kiva DataGrid hook stack, including toolbar search, filters, sorting, grouping, saved views, and local CRUD. | | [useLocalDataSource](/docs/web/hooks/use-local-data-source) | Create an in-memory Kiva-compatible data source from a JSON array, with local CRUD and Kiva-style query parameters. | | [useParameterPersistence](/docs/web/hooks/use-parameter-persistence) | useParameterPersistence hook. | | [useSpeechRecognition](/docs/web/hooks/use-speech-recognition) | useSpeechRecognition hook. |