一键导入
groww-text-area
Text area component for multi-line text input. Use for descriptions, comments, messages, or any long-form text entry.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Text area component for multi-line text input. Use for descriptions, comments, messages, or any long-form text entry.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Accordion component with collapsible sections. Use for FAQs, nested content, or expandable details sections.
Button component with variants, sizes, loading states, and icon support. Use when creating clickable actions, forms, or navigation buttons.
Calendar component for date and month selection. Use when building date pickers, scheduling interfaces, or date range selectors.
Carousel component for image/content sliders with navigation controls. Use for image galleries, hero sections, or content that scrolls horizontally.
Checkbox component for boolean or multi-select inputs. Use when building forms with boolean toggles or multiple selection lists.
Dropdown menu component with trigger and content pattern. Use when building selectable menus, action menus, or nested navigation.
| name | groww-text-area |
| description | Text area component for multi-line text input. Use for descriptions, comments, messages, or any long-form text entry. |
import TextArea from '@groww-tech/ui-toolkit/dist/esm/components/atoms/TextArea';
// or
import { TextArea } from '@groww-tech/ui-toolkit';
Extends React.TextareaHTMLAttributes<HTMLTextAreaElement> plus:
interface TextAreaProps {
value?: string;
onChange?: (value: string) => void;
placeholder?: string;
label?: string;
helperText?: string;
error?: string;
warning?: string;
disabled?: boolean;
required?: boolean;
rows?: number; // Number of visible rows
maxLength?: number;
autoFocus?: boolean;
className?: string;
inputClassName?: string;
dataTestId?: string;
id?: string;
name?: string;
}
<TextArea
value={description}
onChange={setDescription}
placeholder="Enter description..."
/>
<TextArea
label="Bio"
value={bio}
onChange={setBio}
placeholder="Tell us about yourself"
rows={4}
maxLength={500}
/>
<TextArea
label="Feedback"
value={feedback}
onChange={setFeedback}
helperText="We appreciate your feedback"
error={feedbackError || undefined}
/>