/
kaws
/
ui-kit-ce
Обзор
Документация
Войти
/
kaws
/
ui-kit-ce
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/textarea/examples/Basic.tsx
29 строк
768 B
Denis Svyatovets
v1.10.0
27 мар 2024, 13:48
27 мар 2024, 13:48
c9029ae
Код
Авторство
О чём код?
import * as React from 'react' import { Textarea } from '@v-uik/base' export const Basic = (): React.ReactElement => { const [text, setText] = React.useState<string>('') const handleAreaChange = (value: string) => { setText(value) } return ( <Textarea label="Brief description of the area" helperText="Additional description of the area" placeholder="Ordinary district of Moscow" textareaProps={{ id: 'basic-textarea', 'aria-labelledby': 'basic-label', 'aria-describedby': 'basic-helper', }} labelProps={{ id: 'basic-label', htmlFor: 'basic-textarea' }} helperTextProps={{ id: 'basic-helper' }} value={text} onChange={handleAreaChange} /> ) } export default Basic