felixakiragreen / react-kronos

A fast, intuitive, and elegant date and time picker for React.
https://felixakiragreen.github.io/react-kronos/
MIT License
90 stars 28 forks source link

Today #62

Open nebaz opened 7 years ago

nebaz commented 7 years ago
  1. text "today" can be a react.element
  2. ability to hide the today button
felixakiragreen commented 7 years ago

Thank you for submitting a PR! A few questions before I merge it:

  1. Can you explain the use-case for wanting the text "today" to be a React.element?
  2. If it can be a React.element, does it still make sense for it to be buried in options.format.today or should it be its own prop?
nebaz commented 7 years ago

for example, translate text "today" Instantly. To do this, I need to keep the text into react.element.