Loading...
Loading...
Use ShadTextarea for multi-line text input; placeholder. ShadTextareaFormField for forms with validation. Use when adding multi-line text fields or bio/description inputs in a Flutter shadcn_ui app.
npx skill4agent add serverpod/skills-registry shadcn_ui-textareaShadTextareaplaceholderinitialValueShadTextareaFormFieldidlabelplaceholderdescriptionvalidatorconst ShadTextarea(
placeholder: Text('Type your message here'),
)ShadTextareaFormField(
id: 'bio',
label: const Text('Bio'),
placeholder: const Text('Tell us a little bit about yourself'),
description: const Text(
'You can @mention other users and organizations.'),
validator: (v) {
if (v.length < 10) return 'Bio must be at least 10 characters.';
return null;
},
)