sap/fundamental-styles/component-guidance-forms

Claude Code and agent skill by sap/fundamental-styles

Trust tier 3
  • community
  • ext:[{"type":"plugin","description":"Custom plugin integration"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Fiori guidelines for form controls and input components such as Checkbox, Input, Select, Textarea, Date Picker, etc

Install

npx vskill@latest install sap/fundamental-styles/component-guidance-forms

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as sap/fundamental-styles/component-guidance-forms.

Component Guidance - Forms & Inputs

Form controls and input components for data entry.

When to Use This Skill

Use this skill when:

  • The user asks "Should I use [component] for [use case]?"
  • The user needs to choose between similar components
  • The user asks about component best practices
  • The user wants to know when NOT to use a component

This skill covers: Checkbox, Combobox Input, Date Picker, Fieldset, File Uploader, Form Grid, Form Group, Form Header, Form Item, Form Label, Form Message, Input, Input Group, Multi ComboBox, Multi Input, Radio, Select, Slider, Step Input, Switch, Textarea, Time, Time Picker, Token, Tokenizer, Upload Collection

Checkbox

Description: A checkbox lets users set a binary value (true/false). When selected, it toggles between checked (state applies), unchecked (state doesn't apply), and optionally tri-state/indeterminate (mixed selection of dependent fields). All options are visible, and users can make one or more independent selections.

When to use:

  • Only one option can be selected or deselected (e.g., accept terms of use) when meaning is obvious
  • A group or list of options can be selected independently of each other
  • Options are displayed immediately without user interaction
  • Intermediate selection state (tri-state) is required when multiple sub-options are grouped under a parent option

When to avoid:

  • ❌ User needs to choose multiple options from a large list → Use Combo Box Input instead
  • ❌ User can choose only one option from a list → Use Radio Buttons, Select, or List instead
  • ❌ User needs to perform instantaneous actions without reviewing or confirming → Use Switch instead
  • ❌ Not enough space available on screen → Use Combo Box instead

Best practices:

  • ✅ Checked state means the described state applies or item is chosen
  • ✅ Unchecked state means the described state doesn't apply
  • ✅ Tri-state/indeterminate indicates neither checked nor unchecked (set via JavaScript indeterminate property)
  • ✅ Use tri-state to represent mixed selection when some (but not all) dependent fields are selected
  • ✅ All options visible without user interaction
  • ⚠️ Tri-state is visual only and cannot be achieved by direct user interaction
  • ⚠️ Use for independent selections where multiple options can be selected simultaneously


Combobox Input

Description: Combobox allows users to select item from predefined list. Provides editable input field for filtering list and dropdown menu with available options. If entries not validated by app, users can enter custom value. Combines input field with dropdown selection.

When to use:

  • Select single item from long list of items
  • List items are secondary information not needing immediate display
  • Need filtering capability for large lists
  • Allow custom entry if not validated
  • Searchable dropdown needed
  • Select from many options (more than select can handle comfortably)

When to avoid:

  • ❌ Only two options → Use Switch instead
  • ❌ Short list of items → Use Select component instead
  • ❌ More than 200 list items → Use input field with select dialog or value help dialog
  • ❌ Simple selection without filtering → Use Select

Best practices:

  • ✅ Editable input field for filtering list
  • ✅ Dropdown menu with available options
  • ✅ Use for long lists of items
  • ✅ Allow custom value entry if not validated by application
  • ✅ List items are secondary - don't need immediate display
  • ✅ Single item selection only
  • ✅ Provide search/filter functionality
  • ✅ Show filtered results as user types
  • ⚠️ For 2 options, use Switch
  • ⚠️ For short lists, Select is simpler
  • ⚠️ For >200 items, use dialog-based selection
  • ❌ Don't use for very short lists


Date Picker

Description: Date Picker lets users select localized date using touch, mouse, or keyboard input. Responsive behavior for all devices - compact mode (smaller) and cozy mode (touch-friendly). Two parts: Input Field (direct entry or picker) and Date Picker (day/month/year/year ranges views).

When to use:

  • Users need to enter single date
  • Navigate directly from one month or year to another
  • Enter lots of data fast or primarily using keyboard
  • Single date selection needed
  • Responsive date input required
  • Direct date entry or picker selection

When to avoid:

  • ❌ Combined date and time input → Use Date/Time Picker instead
  • ❌ Keep calendar visible and prominent → Use Calendar instead
  • ❌ Enter date range → Use Date Range Picker instead
  • ❌ Multiple dates selection → Use appropriate multi-date picker

Best practices:

  • ✅ Input field for direct date entry or picker selection
  • ✅ Date picker shows day view, month view, year view, year ranges
  • ✅ Compact mode: smaller size
  • ✅ Cozy mode: touch-friendly size
  • ✅ Responsive behavior for all devices
  • ✅ Use touch, mouse, or keyboard input
  • ✅ Navigate directly between months/years
  • ✅ Single date selection
  • ✅ Localized date format
  • ⚠️ For date+time, use Date/Time Picker
  • ⚠️ For ranges, use Date Range Picker
  • ❌ Don't use for date ranges


Fieldset

Description: A fieldset gives semantic meaning to a group of elements inside a form (e.g., Billing or Shipping Address). Grouping fields provides styling and accessibility benefits, and is especially important for checkbox groups and radio button groups.

When to use:

  • Group related form elements semantically (e.g., Billing Address, Shipping Address)
  • Group checkbox groups for accessibility
  • Group radio button groups for accessibility
  • Provide semantic structure to form sections

When to avoid:

  • ❌ Grouping unrelated form elements together
  • ❌ Using fieldset when simpler grouping methods suffice for non-form content

Best practices:

  • ✅ Always use fieldset for checkbox groups (accessibility requirement)
  • ✅ Always use fieldset for radio button groups (accessibility requirement)
  • ✅ Use <legend> element to provide a label for the fieldset
  • ✅ Provides both styling and accessibility benefits
  • ✅ Use for semantic grouping of related form fields
  • ⚠️ Checkbox and radio button groups should always be grouped with fieldset
  • ⚠️ Essential for screen reader users to understand field relationships


File Uploader

Description: The file uploader lets users select and upload one or more files using their local file explorer. It's an opinionated composition of input and button components designed for simple upload tasks with automatic upload start upon file selection.

When to use:

  • Upload one or more files using local file explorer
  • Upload files by dragging and dropping
  • Simple upload tasks where file management isn't needed
  • Uploading single files (works best for this case)

When to avoid:

  • ❌ Uploading large files that may take a long time → Use upload collection instead
  • ❌ Users need to see upload status → Use upload collection instead
  • ❌ Users need a preview of uploaded files → Use upload collection instead
  • ❌ Users may need to rename uploaded files → Use upload collection instead
  • ❌ Users need to manage multiple uploads (delete, rearrange, rename files) → Use upload collection instead

Best practices:

  • ✅ Best suited for uploading single files
  • ✅ Uploading starts automatically when files are selected
  • ✅ Supports both file explorer selection and drag-and-drop
  • ✅ Includes only input field or button for simplicity
  • ⚠️ For multiple file management features, use upload collection component
  • ⚠️ Not suitable for large files or when upload status visibility is required


Form Grid

Description: The form grid provides responsive layouts for forms on a 12-column grid with four breakpoints (Small <600px, Medium 601-1024px, Large 1025-1440px, Extra-large >1441px). It supports configurable label-field ratios (X:Y:Z format) and adapts layouts based on form width, not screen width.

When to use:

  • Create responsive form layouts that adapt to different form widths
  • Balance form layout between labels, fields, and empty columns
  • Single-column layouts for mobile/dialogs (Small size)
  • Two-column layouts for larger screens (Large/Extra-large sizes)
  • Split-screen or full-screen form views with specific label-field ratios
  • Forms requiring vertical layout (labels above fields) or horizontal layout (labels beside fields)

When to avoid:

  • ❌ Simple forms that don't need responsive grid behavior
  • ❌ When a simpler form layout component suffices

Best practices:

  • ✅ Use single-column layout for small forms (mobile/dialogs) - labels above fields
  • ✅ Use two-column layout for large/extra-large forms to avoid scrolling
  • ✅ Adapt label-field ratio based on context: 2:10:0 (default medium), 4:7:1 (split-screen), 3:5:4 (full-screen)
  • ✅ Use 4:8:0 ratio for long labels/input values at medium width
  • ✅ All forms display vertical layout under Small breakpoint automatically
  • ✅ Position form groups side-by-side in Z layout for large/extra-large sizes
  • ✅ Use recommended column numbers to maximize screen space and avoid unnecessary scrolling
  • ⚠️ Breakpoints depend on form width, not screen width
  • ⚠️ Empty grid columns (Z in X:Y:Z ratio) prevent excessive input field stretching
  • ⚠️ Change default label-field ratio according to your app's specific needs


Form Group

Description: Form groups assemble form elements with labels, messages, and help containers. Components like fd-form__item with label and control can be used independently when error messages aren't needed.

When to use:

  • Assemble complete form elements with labels, controls, messages, and help text
  • Group related form fields with validation messages
  • Create structured form layouts with consistent spacing
  • Need error messages, help text, or validation feedback alongside form fields

When to avoid:

  • ❌ Simple form fields that don't need error messages or help text → Use fd-form__item alone instead
  • ❌ When minimal form structure suffices

Best practices:

  • ✅ Use full form group when error messages or help containers are needed
  • ✅ Use fd-form__item with label and control alone for simpler fields without messages
  • ✅ Components can be used independently based on needs
  • ✅ Provides consistent structure for labels, controls, messages, and help text
  • ⚠️ Not every form field needs the full form group structure
  • ⚠️ Choose minimal necessary components to avoid over-engineering simple forms


Form Header

Description: Form headers are titles that provide context about a group of input fields. For example, "Personal Information" would categorize fields like Name, Address, etc.

When to use:

  • Provide context and categorization for groups of input fields
  • Organize form sections with descriptive titles
  • Help users understand what information belongs in each form section
  • Create visual hierarchy in long or complex forms

When to avoid:

  • ❌ Single input field that doesn't need categorization
  • ❌ When field labels alone provide sufficient context

Best practices:

  • ✅ Use descriptive titles that clearly categorize the grouped fields (e.g., "Personal Information", "Billing Address")
  • ✅ Place header before the related group of input fields
  • ✅ Use for organizing complex forms into logical sections
  • ✅ Helps users scan and navigate long forms efficiently
  • ⚠️ Keep header text concise and meaningful
  • ⚠️ Don't overuse - only when grouping provides real value


Form Item

Description: A form item combines a label and an input field. The label clearly describes the expected input and is associated with the input for accessibility.

When to use:

  • Combine label and input field as a single form element
  • Optional inputs that don't require validation or indication (default)
  • Required inputs that need visual and accessible indication (use fd-form-label--required)
  • Ensure accessible association between label and input

When to avoid:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
229
Repository forks
70
7-day trend score
27

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • pluginCustom plugin integration

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sap/fundamental-styles/component-guidance-forms/badge)](https://verified-skill.com/skills/sap/fundamental-styles/component-guidance-forms)

Something wrong with this skill or its page? Tell us.