API Reference@grafana/ui › InputControl

InputControl variable

InputControl variable

Signature

InputControl: <As extends "symbol" | "object" | "s" | "section" | "map" | "filter" | "p" | "g" | "b" | "var" | "time" | "meta" | "data" | "text" | "table" | "style" | "head" | "pattern" | "title" | "source" | "i" | "desc" | "select" | import("react").FunctionComponent<any> | import("react").ComponentClass<any, any> | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "header" | "hgroup" | "hr" | "html" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "mark" | "menu" | "menuitem" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "samp" | "script" | "small" | "span" | "strong" | "sub" | "summary" | "sup" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "tr" | "track" | "u" | "ul" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | "template" | import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>, ControlProp extends import("react-hook-form").Control<Record<string, any>> = import("react-hook-form").Control<Record<string, any>>>({ name, rules, as: InnerComponent, onBlur, onChange, onChangeName, onBlurName, valueName, defaultValue, control, ...rest }: import("react-hook-form").Assign<{
    name: string;
    as: As;
    rules?: Partial<{
        required: string | boolean | {
            value: boolean;
            message: string;
        };
        min: string | number | {
            value: string | number;
            message: string;
        };
        max: string | number | {
            value: string | number;
            message: string;
        };
        maxLength: string | number | {
            value: string | number;
            message: string;
        };
        minLength: string | number | {
            value: string | number;
            message: string;
        };
        pattern: RegExp | {
            value: RegExp;
            message: string;
        };
        validate: import("react-hook-form").Validate | Record<string, import("react-hook-form").Validate>;
    }> | undefined;
    onChange?: import("react-hook-form").EventFunction | undefined;
    onBlur?: import("react-hook-form").EventFunction | undefined;
    mode?: "onChange" | "onBlur" | "onSubmit" | undefined;
    onChangeName?: string | undefined;
    onBlurName?: string | undefined;
    valueName?: string | undefined;
    defaultValue?: any;
    control?: ControlProp | undefined;
}, import("react-hook-form").AsProps<As>>) => import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>

Import

import { InputControl } from '@grafana/ui';