featherbit UI
    Preparing search index...

    Function DialogField

    • Labelled single-line text input for use inside a Dialog body — the replacement for the value half of a native prompt(). Controlled: renders value and reports edits through onChange.

      label is the caption rendered above the input. mono (default false) renders the input in the monospace font, for code-like values such as route paths or upstream URLs. autoFocus (default false) focuses the input when it mounts, for the dialog's primary field.

      Parameters

      • __namedParameters: {
            autoFocus?: boolean;
            label: string;
            mono?: boolean;
            onChange: (v: string) => void;
            placeholder?: string;
            value: string;
        }

      Returns Element