Install Flatpickr with:
npm install --prefix assets flatpickrImport the Flatpickr CSS in your app.css file:
@import "flatpickr/dist/flatpickr.css";Then copy the component to your app’s components entry point. After that, you can use it like this:
<.datetime_picker field={@form[:scheduled_to]} label="Data e horário" />