diff --git a/packages/grafana-ui/src/components/SecretFormField/SecretFormField.tsx b/packages/grafana-ui/src/components/SecretFormField/SecretFormField.tsx index 0def5de614c..e4e5c2088ca 100644 --- a/packages/grafana-ui/src/components/SecretFormField/SecretFormField.tsx +++ b/packages/grafana-ui/src/components/SecretFormField/SecretFormField.tsx @@ -3,6 +3,7 @@ import React, { InputHTMLAttributes, FunctionComponent } from 'react'; import { FormField } from '../FormField/FormField'; import { Button } from '../Button/Button'; import { css, cx } from 'emotion'; +import { PopoverContent } from '../Tooltip/Tooltip'; export interface Props extends Omit, 'onReset'> { // Function to use when reset is clicked. Means you have to reset the input value yourself as this is uncontrolled @@ -11,7 +12,7 @@ export interface Props extends Omit, 'onRe isConfigured: boolean; label?: string; - tooltip?: string; + tooltip?: PopoverContent; labelWidth?: number; inputWidth?: number; // Placeholder of the input field when in non configured state. @@ -50,7 +51,7 @@ export const SecretFormField: FunctionComponent = ({ return (