🌐 AI搜索 & 代理 主页
Skip to content

Commit 6d3eb52

Browse files
authored
Update common-props.json
1 parent ca3f743 commit 6d3eb52

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

docs/common-props.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,36 @@
1111
"size": {
1212
"description": "Set the size of the component's appearence. 'sm', 'md' (default), or 'lg'"
1313
},
14+
"required": {
15+
"description": "Adds the 'required' attribute to the form control"
16+
},
17+
"form": {
18+
"description": "ID of the form that the form control belongs to. Sets the 'form' attribute on the control."
19+
},
20+
"autofocus": {
21+
"description": "When set to 'true', auto-focuses the control once it is mounted. Does not set the 'autofocus' attribute on the control"
22+
},
1423
"state": {
1524
"description": "Controls the validation state appearence of hte component. 'true' for valid, 'false' for invalid', or 'null' for no validation state"
1625
},
26+
"options": {
27+
"description": "Array of items to render in the component"
28+
},
29+
"value-field": {
30+
"description": "Field name in the 'options' array that should be used for the value"
31+
},
32+
"text-field": {
33+
"description": "Field name in the 'options' array that should be used for the text label"
34+
},
35+
"html-field": {
36+
"description": "Field name in the 'options' array that should be used for the html label instead of text field. Use with caution."
37+
},
38+
"disabled-field": {
39+
"description": "Field name in the 'options' array that should be used for the disabled state"
40+
},
41+
"plain": {
42+
"description": "Render the form control in plain mode, rahter than custom styled mode"
43+
},
1744
"role": {
1845
"description": "Sets the ARIA attribute 'role' to a specific value"
1946
},

0 commit comments

Comments
 (0)