خانة الوسوم Tag Input (Token Field)
حقل تكتب فيه كلمات، وتتحوّل كل واحدة منها إلى كبسولة صغيرة فيها ×.
يُعرف أيضاً باسم: Token Field
<input> + list of <button>sمتى تستخدمه
للوسوم، والمستلمين، والمهارات.
خطأ شائع
لا تترك الوسوم دون حد أقصى واضح.
إمكانية الوصول
Backspace on empty input removes the last tag; announce additions.
اسمه في الكود
| HTML/CSS | <input> + list of <button>s |
|---|---|
| React | <TagsInput> |
| Jetpack Compose | FlowRow(InputChip) + TextField |
| SwiftUI | TokenField (macOS) / custom |
برومبت جاهز لوكيل البرمجة
Add a Tag Input (Token Field) to this screen.
What it is: A field where each word you type turns into a small removable capsule.
Implement with: <input> + list of <button>s (HTML/CSS).
Accessibility: Backspace on empty input removes the last tag; announce additions.
When to use it: For tags, recipients, skills.
Avoid: Don’t leave the tag limit unclear.
Reuse the project's existing design tokens, spacing and component conventions.
أو ركّب صفحة كاملة من هذا العنصر وغيره →
البرومبت بالإنجليزية لأنها الأدق مع Claude Code وأمثاله.