Engineering Decisions · Junior · Question 12 of 12
The product needs an accessible date picker next week. Nobody on the team has built one, and the app already uses a maintained component library. What do you pick?
- 1A native
<input type="date">restyled heavily - 2A custom one built from scratch for full control
- 3The date picker from the existing library
Show the answer
Correct answer: The date picker from the existing library
Explanation
A maintained component already handles keyboard use, focus and screen readers, which is weeks of hidden work. A custom picker fits a product whose core value is that widget and a team that can maintain it. The native input fits simple forms and is accessible by default, but its look can barely be restyled, so it fits only if the default appearance is acceptable.