UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

18 lines 1.06 kB
import React from 'react'; import type { InputStylesNames } from '../Input/Input'; import type { InputWrapperStylesNames } from '../InputWrapper/InputWrapper'; import { TextInput } from '../TextInput/TextInput'; export declare type PasswordInputStylesNames = InputStylesNames | InputWrapperStylesNames; export interface PasswordInputProps extends Omit<React.ComponentPropsWithoutRef<typeof TextInput>, 'rightSection' | 'rightSectionProps' | 'rightSectionWidth'> { /** Title for visibility toggle button in hidden state */ showPasswordLabel?: string; /** Title for visibility toggle button in visible state */ hidePasswordLabel?: string; /** Toggle button tabIndex, set to 0 to make button focusable with tab key */ toggleTabIndex?: -1 | 0; } export declare function PasswordInput({ radius, disabled, hidePasswordLabel, showPasswordLabel, themeOverride, size, toggleTabIndex, ...others }: PasswordInputProps): JSX.Element; export declare namespace PasswordInput { var displayName: string; } //# sourceMappingURL=PasswordInput.d.ts.map