API
interface ExposedComponent<T extends {
new (...args: any[]): any;
}> {new (...args: any[]): any;children?: 'any' | 'text' | ExposedComponent<any>[] | false;component: T;description: string;fallback?: Type<{
partialProps?: Signal<Record<string, JsonResolvedValue>>;
}>;name: string;props?: ComponentPropSchema<T>;providers?: Provider[];}ExposedComponent
@typeT{
new (...args: any[]): any;
}children
'any' | 'text' | ExposedComponent<any>[] | falsecomponent
Tdescription
stringThe description of the component. The model reads it to decide when to use the component, so say when to use it, when not to, and how it differs from similar components. Put value conventions in the input schemas' descriptions instead.
name
stringprops
providers
Provider[]