UNPKG

alouette

Version:

A modern, customizable design system built on top of NativeWind v5 with configurable defaults

21 lines • 1.06 kB
import type { ReactNode } from "react"; import { type InputTextProps } from "./InputText"; export interface InputPasswordProps extends Omit<InputTextProps, "endSlot" | "mode" | "multiline" | "secureTextEntry"> { /** Controlled: the password shows in clear. */ visible?: boolean; /** Initial state for uncontrolled usage. Defaults to hidden. */ defaultVisible?: boolean; onVisibleChange?: (visible: boolean) => void; /** * Accessible name of the eye toggle. It never changes: the toggle is * `aria-pressed` while the password shows. Defaults to "Show password". */ toggleLabel?: string; } /** * `InputText` in `password` mode with an eye toggle in its `endSlot` to show * what was typed. `autoComplete` is `current-password` from the mode; pass * `autoComplete="new-password"` on a sign-up form. */ export declare function InputPassword({ visible: controlledVisible, defaultVisible, onVisibleChange, toggleLabel, disabled, ...props }: InputPasswordProps): ReactNode; //# sourceMappingURL=InputPassword.d.ts.map