@kitn.ai/chat
Version:
Framework-agnostic, Shadow-DOM web components for building AI chat interfaces — works in React, Vue, Angular, Svelte, or plain HTML. Authored in SolidJS.
34 lines (33 loc) • 1.23 kB
JSON
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://kitn.ai/schemas/card/form.schema.json",
"title": "kc-form data (a form definition)",
"description": "The CardEnvelope.data for a card of type 'form': a JSON Schema (type:'object') describing the fields kc-form renders, plus optional x-kc-* UI hints. The same schema validates the submission.",
"type": "object",
"required": ["type", "properties"],
"properties": {
"type": { "const": "object" },
"title": { "type": "string" },
"description": { "type": "string" },
"required": { "type": "array", "items": { "type": "string" } },
"properties": {
"type": "object"
},
"x-kc-order": { "type": "array", "items": { "type": "string" } },
"x-kc-inlineMax": { "type": "integer", "minimum": 1 },
"x-kc-submitLabel": { "type": "string" },
"x-kc-dismissible": { "type": "boolean" },
"x-kc-actions": {
"type": "array",
"items": {
"type": "object",
"required": ["id", "label"],
"properties": {
"id": { "type": "string" },
"label": { "type": "string" },
"variant": { "enum": ["default", "ghost", "outline"] }
}
}
}
}
}