Built-in Schema Components
ModalTabs
ModalTabs is a schema component ($cmp: 'ModalTabs') that wraps the kit’s ModalTabs UI primitives (src/forms/components/ModalTabs.tsx) and connects them to schema form errors.
Basic Usage
Use ModalTabs when the schema needs tabbed sections that still participate in SchemaForm error handling.
Role
- Reads
SchemaEngineContextto accessgetErrorMapFields. - Walks
schemaNode.children(tab panels) and computes which tabs contain fields with errors (viahasSchemaErrorsCachedfromutils/schemaIndexCache). - Provides
ModalTabsErrorsContextso triggers can show error state.
Export useModalTabsErrors for custom triggers if you replace subcomponents.
Subcomponents
Use together in schema:
ModalTabs— root; accepts schema-driven props merged from the node.ModalTabsListModalTabsTrigger—valuematches a tab panel’svalue.ModalTabsContent— wraps children in a grid;valueselects the active panel.
These map to registry keys ModalTabs, ModalTabsList, ModalTabsTrigger, ModalTabsContent.
usesSchemaNode
Only the root ModalTabs wrapper sets usesSchemaNode: true, so the engine injects schemaNode for tab ↔ error mapping. List / trigger / content are plain functions exported through the registry without usesSchemaNode.
Related
Edit this page
Last updated: May 22, 2026, 6:53 PM