Skip to content

Input

Input renders single-line text input fields styled with focus rings and error states.

Usage

InputExample.tsx
import { useState } from 'react';
import { Input } from '@masumdev/rn-ui';
export function InputExample() {
const [value, setValue] = useState('');
return (
<Input
placeholder="Enter username"
value={value}
onChangeText={setValue}
size="md"
/>
);
}

Props API

PropTypeDefaultDescription
valuestringInput text value.
onChangeText(text: string) => voidCallback when input text changes.
placeholderstringPlaceholder hint string.
size'sm' | 'md' | 'lg''md'Input height size.
errorbooleanfalseHighlights border with danger error color.
disabledbooleanfalseDisables user interaction.