From b8a7a18de1e388b5c30b2222f63fbb401a55c17a Mon Sep 17 00:00:00 2001 From: Daniil Suvorov Date: Tue, 23 Jan 2024 12:03:37 +0300 Subject: [PATCH] feat(Textarea): add `align` (#6434) - closed #6363 --- .../src/components/Textarea/Textarea.e2e-playground.tsx | 6 ++++++ packages/vkui/src/components/Textarea/Textarea.module.css | 8 ++++++++ packages/vkui/src/components/Textarea/Textarea.tsx | 6 +++++- .../textarea-android-chromium-dark-1-snap.png | 4 ++-- .../textarea-android-chromium-light-1-snap.png | 4 ++-- .../textarea-ios-webkit-dark-1-snap.png | 4 ++-- .../textarea-ios-webkit-light-1-snap.png | 4 ++-- .../textarea-vkcom-chromium-dark-1-snap.png | 4 ++-- .../textarea-vkcom-chromium-light-1-snap.png | 4 ++-- .../textarea-vkcom-firefox-dark-1-snap.png | 4 ++-- .../textarea-vkcom-firefox-light-1-snap.png | 4 ++-- .../textarea-vkcom-webkit-dark-1-snap.png | 4 ++-- .../textarea-vkcom-webkit-light-1-snap.png | 4 ++-- 13 files changed, 39 insertions(+), 21 deletions(-) diff --git a/packages/vkui/src/components/Textarea/Textarea.e2e-playground.tsx b/packages/vkui/src/components/Textarea/Textarea.e2e-playground.tsx index 29ff4fa499..983a9de525 100644 --- a/packages/vkui/src/components/Textarea/Textarea.e2e-playground.tsx +++ b/packages/vkui/src/components/Textarea/Textarea.e2e-playground.tsx @@ -34,6 +34,12 @@ export const TextareaPlayground = (props: ComponentPlaygroundProps) => { { status: ['error', 'valid'], }, + { + align: ['center', 'right'], + defaultValue: [ + 'Музыка\nСпорт\nФотография\nПлавание\nПрограммирование\nПутешествия\nКниги\nСериалы\nФильмы\nНастольные игры', + ], + }, ]} > {(props: TextareaProps) =>