We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e707774 commit a8fc49bCopy full SHA for a8fc49b
src/elements/forms/text-field.css
@@ -77,6 +77,18 @@ label {
77
}
78
79
80
+input:disabled,
81
+input:read-only,
82
+input:disabled + label,
83
+input:read-only + label {
84
+ --form-control-color: var(--gray-500);
85
+ --form-label-color: var(--gray-500);
86
+}
87
+
88
+input:disabled {
89
+ cursor: not-allowed;
90
91
92
/* Size variations */
93
94
.small {
src/elements/forms/text-field.md
@@ -64,6 +64,19 @@ Example with success message:
64
/>
65
```
66
67
+Example with disabled input:
68
69
+```jsx
70
+<TextField
71
+ id="disabled-input"
72
+ name="disabled-input"
73
+ label="Disabled input"
74
+ value="Disabled input"
75
+ variant="success"
76
+ disabled
+/>
+```
### Size variations
#### Small
0 commit comments