DateInput change appearance

1 Answer 73 Views
DateInput Styling / Themes
Rachel
Top achievements
Rank 1
Iron
Rachel asked on 24 Feb 2022, 01:17 PM | edited on 24 Feb 2022, 01:19 PM

I want to change the background color of DateInput component, but it does not recognize any style I'm applying.


<DateInput style={{ backgroundColor: 'red' }}></DateInput>

1 Answer, 1 is accepted

Sort by
1
Accepted
Stefan
Telerik team
answered on 24 Feb 2022, 01:31 PM

Hello,

That can be done using the className property and then styling the element:

https://stackblitz.com/edit/react-8qttho?file=index.html

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Rachel
Top achievements
Rank 1
Iron
commented on 24 Feb 2022, 01:48 PM

It worked.

Thank you!

Tags
DateInput Styling / Themes
Asked by
Rachel
Top achievements
Rank 1
Iron
Answers by
Stefan
Telerik team
Share this question
or