import React, { FormEvent, PropsWithChildren, ReactElement } from 'react'; import { InlineField, Input, PopoverContent } from '@grafana/ui'; interface VariableTextFieldProps { value: string; name: string; placeholder: string; onChange: (event: FormEvent) => void; ariaLabel?: string; tooltip?: PopoverContent; required?: boolean; width?: number; labelWidth?: number; grow?: boolean; onBlur?: (event: FormEvent) => void; } export function VariableTextField({ value, name, placeholder, onChange, ariaLabel, width, labelWidth, required, onBlur, tooltip, grow, }: PropsWithChildren): ReactElement { return ( ); }