25 Aug 2023
I am figuring out how to set a fixed with to Formfiled component and TextInput. I tried to wrap these to components into a div but it failed. Could you help to expalin how to adapt a normal css stve to Dynatrace components. Thanks.
Now my code looks like this:
Go to Solution.
28 Aug 2023
Hi @JoyLi ,
may I ask which version of the @dynatrace/strato-components-preview package you're using?
Here is an example that works for me:
<FormField label="Enter text" required>
<TextInput placeholder="This is a default text input" />
The width prop can be adapted to your needs, e.g. to "100%" or "100px". I hope that helps!