import { useState } from 'react' import { Button, FormField, Icon, IconButton, Input, PasswordInput, Space, Text, Textarea } from '../../src' import { Demo } from '../components/Demo' import { PropsTable } from '../components/PropsTable' import { Section } from '../components/Section' export function Inputs() { const [keyword, setKeyword] = useState('') const [host, setHost] = useState('127.0.0.1:8080') const [email, setEmail] = useState('not-an-email') const [password, setPassword] = useState('') return (
setKeyword(event.target.value)} clearable onClear={() => setKeyword('')} />`} > setKeyword(event.target.value)} clearable onClear={() => setKeyword('')} style={{ width: 320 }} /> 当前值:{keyword === '' ? '(空)' : keyword} setHost(event.target.value)} />`} > setHost(event.target.value)} style={{ width: 320 }} /> `} > `} > } />} />`} > setHost(event.target.value)} suffix={ } onClick={() => void navigator.clipboard.writeText(host)} /> } style={{ width: 320 }} /> `} >
setEmail(event.target.value)} /> 当前值:{email}