Skip to Content
Components

Kiva Data Source Picker

Kiva Data Source Picker component with multiple variants and sizes.

Client Only

Installation

pnpm dlx @kivacore/ui-cli add @kivacore/ui-kiva-data-source-picker
Required Packages(1 package)
pnpm add @types/react
UI Primitives(4 components)
npx shadcn@latest add badge button dialog tooltip

Usage

import {
  KivaDataSourcePicker
} from "@kivacore/ui/components/kiva-data-source-picker";

<KivaDataSourcePicker
  schema={...}
  selectedDataSource={...}
  jsonataContextPaths={ContextPath[]}
  handlebarsContextPaths={ContextPath[]}
  selectedRecord={...}
  recordText="..."
  hasSelection
/>

API Reference

PropTypeDefault
schemaJsonSchema | null—
selectedDataSourceDataSource | null—
jsonataContextPathsArray<ContextPath>—
handlebarsContextPathsArray<ContextPath>—
selectedRecordRecord<string, unknown> | null—
recordTextstring—
hasSelectionboolean—
classNamestring—

On this page