What problem does it solve?
This Skill provides precise TypeScript typings and guidance for @canard/schema-form, enabling teams to define and validate core types such as FormTypeInputProps and FormTypeRendererProps, clarify generic parameter usage, and streamline context extensions across UI libraries.
Core Features & Use Cases
- Core type definitions explained: FormTypeInputProps, FormTypeRendererProps, FormTypeInputDefinition, FormTypeTestObject, and related utilities with practical patterns.
- Type pattern guidance: extending UI library contexts (e.g., MuiContext) and composing props with Context, WatchValues, onChange, and onFileAttach.
- Legacy updates and migration: identify gaps between legacy docs and latest source in packages/canard/schema-form/src/types, with concrete migration steps.
- Usage scenarios: guidance for building TS-safe plugins, form runtimes, and type-safe UI components.
Quick Start
Create a basic string input component by extending FormTypeInputProps<string, MuiContext>, implement an onChange handler, and use a simple MuiContext (size and variant) in a UI plugin.