Arc.React
    Preparing search index...

    Interface BaseCommandFormFieldProps<TCommand>

    Props that your field component should accept (excluding the injected ones).

    The value accessor uses a method declaration so that TypeScript checks it bivariantly. This lets callers pass (c: MyCommand) => c.name even when the generic defaults to unknown, while still providing full type safety when an explicit type argument is supplied:

    <MyField value={c => c.name} />

    interface BaseCommandFormFieldProps<TCommand = unknown> {
        description?: string;
        icon?: ReactElement<any, string | JSXElementConstructor<any>>;
        required?: boolean;
        title?: string;
        value(instance: TCommand): unknown;
    }

    Type Parameters

    • TCommand = unknown
    Index

    Properties

    description?: string
    icon?: ReactElement<any, string | JSXElementConstructor<any>>
    required?: boolean
    title?: string

    Methods