@impulse-ui-native/input
v2.0.1
Published
A themed text input built on the shared Impulse UI Native control system.
Readme
@impulse-ui-native/input
A themed text input built on the shared Impulse UI Native control system.
Installation
pnpm add @impulse-ui-native/inputRender Input inside ThemeProvider from @impulse-ui-native/theme.
Main exports
Inputcombines a nativeTextInputwith a label, error message, addons, icons, size, and visual variant.InputPropsextends React Native'sTextInputPropsand the shared control props.- Secure inputs automatically receive a suffix action that toggles password visibility.
Usage
import { Input } from "@impulse-ui-native/input";
<Input
label="Email"
placeholder="[email protected]"
keyboardType="email-address"
autoCapitalize="none"
value={email}
onChangeText={setEmail}
error={emailError}
/>;Use Prefix, Suffix, PrefixIcon, and SuffixIcon for control addons, and onPressPrefix or onPressSuffix when an addon is interactive.
