@grafana/ui
Version:
Grafana Components Library
18 lines (17 loc) • 755 B
TypeScript
import { InputHTMLAttributes, FunctionComponent } from 'react';
interface Props extends InputHTMLAttributes<HTMLInputElement> {
onReset: () => void;
isConfigured: boolean;
label?: string;
labelWidth?: number;
inputWidth?: number;
placeholder?: string;
}
/**
* Form field that has 2 states configured and not configured. If configured it will not show its contents and adds
* a reset button that will clear the input and makes it accessible. In non configured state it behaves like normal
* form field. This is used for passwords or anything that is encrypted on the server and is later returned encrypted
* to the user (like datasource passwords).
*/
export declare const SecretFormField: FunctionComponent<Props>;
export {};