schema-components - v3.7.0
    Preparing search index...

    Type Alias RenderFunction<Output, Props>

    RenderFunction: (props: Props) => Output

    Generic render-function signature parameterised over the output type (Output) and the per-framework props shape (Props).

    The React adapter uses RenderProps with unknown output — see the default specialisation below — and the HTML adapter uses HtmlRenderFunction (an alias for RenderFunction\<string, HtmlRenderProps\>). Future framework adapters (Vue, Solid, Svelte, Lit) pick their own pairing.

    The default Output = unknown, Props = RenderProps keeps the historic React-flavoured signature compatible — any caller writing RenderFunction without type arguments gets exactly the previous (props: RenderProps) =\> unknown shape.

    Type Parameters

    Type Declaration