This is a migrated thread and some comments may be shown as answers.

Input component Width

1 Answer 533 Views
Wrappers for React
This is a migrated thread and some comments may be shown as answers.
Vincent
Top achievements
Rank 1
Vincent asked on 06 Aug 2018, 12:19 PM

Hello,

I'm trying to wake my Input component use all space he can occupy.

I saw here the props width, but it doesn't seems to work.

A little exemple.

https://next.plnkr.co/edit/WxYDfF0LWBRy4XtN?preview

Thanks,

Regard
Vincent.

1 Answer, 1 is accepted

Sort by
0
Accepted
Kiril
Telerik team
answered on 06 Aug 2018, 12:40 PM
Hello Vincent,

Since we pass all the props to a native input element, the property is set correctly. From what i was able to identify is that even the native input element does not apply width, when the property is set.

I recommend using the style property instead for setting the width of the Input component.
I've prepared an example demonstrating it's usage here .

Please let me know if you need more help.

Regards,
Kiril
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Wrappers for React
Asked by
Vincent
Top achievements
Rank 1
Answers by
Kiril
Telerik team
Share this question
or