Control size of Angular clr form inputs #6275
Replies: 2 comments 1 reply
-
@afulkersonApollo If you are using Angular, I recommend checking out our |
Beta Was this translation helpful? Give feedback.
-
+1 for what @mathisscott pointed out but, if you are not able to move to the core forms yet, there is support for controlling width by using See that section here. Here is what it says:
<form clrForm clrLayout="horizontal" clrLabelSize="4">
<clr-input-container>
<label>First name</label>
<input clrInput type="text" [(ngModel)]="firstName" name="firstName" required />
<clr-control-error>We need your first name for legal compliance</clr-control-error>
</clr-input-container>
</form> |
Beta Was this translation helpful? Give feedback.
-
Would be nice if an API was exposed that allowed us to control the size of form inputs. Something like a
fullWidth
orcolumnSpan
attribute on the<clr-*-container>
elements. Currently the way I change the size of an inner form element is by using:host ::ng-deep
because there's no way, that I can tell, to easily adjust its width. Is there a better or more obvious way to do it?Beta Was this translation helpful? Give feedback.
All reactions