UNPKG

@grafana/ui

Version:
17 lines (16 loc) 810 B
import * as React from 'react'; import { Input } from '../Input/Input'; export type Props = React.ComponentProps<typeof Input> & { /** TRUE if the secret was already configured. (It is needed as often the backend doesn't send back the actual secret, only the information that it was configured) */ isConfigured: boolean; /** Called when the user clicks on the "Reset" button in order to clear the secret */ onReset: () => void; }; export declare const CONFIGURED_TEXT = "configured"; export declare const RESET_BUTTON_TEXT = "Reset"; /** * Used for secret/password input. * * https://developers.grafana.com/ui/latest/index.html?path=/docs/inputs-secretinput--docs */ export declare const SecretInput: ({ isConfigured, onReset, ...props }: Props) => import("react/jsx-runtime").JSX.Element;