UNPKG

@grafana/ui

Version:

Grafana Components Library

15 lines (14 loc) 607 B
import React, { InputHTMLAttributes, FunctionComponent } from 'react'; import { PopperContent } from '../Tooltip/PopperController'; export interface Props extends InputHTMLAttributes<HTMLInputElement> { label: string; tooltip?: PopperContent<any>; labelWidth?: number; inputWidth?: number; inputEl?: React.ReactNode; } /** * Default form field including label used in Grafana UI. Default input element is simple <input />. You can also pass * custom inputEl if required in which case inputWidth and inputProps are ignored. */ export declare const FormField: FunctionComponent<Props>;