dhis2_generate_ui_form_patterns
Automatically create @dhis2/ui form patterns, including inputs, validation, date picker, file upload, and multi-select components, tailored for DHIS2 health information systems.
Instructions
Generate @dhis2/ui form patterns (inputs, validation, date picker, file upload, multi-select)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accessibility | No | Add accessibility attributes and checklist | |
| componentName | No | Component name | |
| density | No | Form density guidance | |
| i18n | No | Include @dhis2/d2-i18n usage | |
| includeDatePicker | No | Include DatePicker | |
| includeFileUpload | No | Include FileInput upload | |
| includeMultiSelect | No | Include MultiSelect | |
| includeSelects | No | Include SingleSelect inputs | |
| includeValidation | No | Include client-side validation | |
| rtl | No | Add RTL considerations |
Input Schema (JSON Schema)
{
"properties": {
"accessibility": {
"description": "Add accessibility attributes and checklist",
"type": "boolean"
},
"componentName": {
"description": "Component name",
"type": "string"
},
"density": {
"description": "Form density guidance",
"enum": [
"comfortable",
"compact"
],
"type": "string"
},
"i18n": {
"description": "Include @dhis2/d2-i18n usage",
"type": "boolean"
},
"includeDatePicker": {
"description": "Include DatePicker",
"type": "boolean"
},
"includeFileUpload": {
"description": "Include FileInput upload",
"type": "boolean"
},
"includeMultiSelect": {
"description": "Include MultiSelect",
"type": "boolean"
},
"includeSelects": {
"description": "Include SingleSelect inputs",
"type": "boolean"
},
"includeValidation": {
"description": "Include client-side validation",
"type": "boolean"
},
"rtl": {
"description": "Add RTL considerations",
"type": "boolean"
}
},
"type": "object"
}