import { useState } from 'react'; import { Screen, View, Text, Input } from '../index'; export const InputExamples = () => { const [textValue, setTextValue] = useState(''); const [emailValue, setEmailValue] = useState(''); const [passwordValue, setPasswordValue] = useState(''); const [numberValue, setNumberValue] = useState(''); const [searchValue, setSearchValue] = useState(''); const [usernameValue, setUsernameValue] = useState(''); return ( Input Examples {/* With Icons */} With Icons {/* Input Types */} Input Types {/* Input Sizes */} Sizes {/* Input Variants */} Variants {/* Input States */} States {}} /> {/* Auto-capitalization Examples */} Auto-capitalization {/* Accessibility Examples */} Accessibility {/* Basic accessible input with label */} Enter your work email address {/* Input with error state and accessible error association */} 0 && passwordValue.length < 8} accessibilityRequired hasError={passwordValue.length > 0 && passwordValue.length < 8} /> 0 && passwordValue.length < 8 ? 'danger' : 'muted'} > {passwordValue.length > 0 && passwordValue.length < 8 ? 'Password must be at least 8 characters' : 'Enter a secure password'} {/* Disabled input with accessibility indication */} ); };