Replies: 1 comment 1 reply
-
Hi Philip, The Input component is suitable for a single line of text and also has a
Note that the Form Field component itself does not render any particular actual "input field" in which the user can enter a value, it is basically a wrapper around it to display a related label and eventual validation errors. The input field in your case is rendered by the ControlledInput component which I assume is a component of your own. So this is what I am wondering if it would work for you:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We want to have something like
FormField
, which is suitable for a single line of text and cannot be resized, displaying some information that has been determined as a result of a user action.We're currently achieving that with this approach:
Unfortunately, the field can be selected, which suggests to the user that they can type in that field (even though they can't).
The only other control I've found in Cloudscape that potentially meets our needs is
Textarea
, which supports adisabled
property so that the field cannot be selected ... but it allows resizing! There doesn't seem to be a property that prevents resizing.Is there any way to get closer to what we want, a single line of text in some sort of container that cannot be selected by the user?
Beta Was this translation helpful? Give feedback.
All reactions