I would like to render some header/title for time picker to indicate this is HH, MM and SS (Which is Hour, Minute, Sec) but unable to do.
I can achieve it by only renderExtraFooter which renders at the bottom of the picker but I need it on the top of the time picker. You can check the code below:
https://stackblitz.com/edit/react-j1kksn-ef4m56?file=index.js
Some of the users feels hard to find which is hour, minute and seconds. It would be better to have that option.
import React from "react";
import ReactDOM from "react-dom";
import "antd/dist/antd.css";
import "./index.css";
import { TimePicker } from "antd";
const onChangeTime = time => {
console.log(time);
};
ReactDOM.render(
<TimePicker
onChange={onChangeTime}
renderExtraFooter={() => (
<div className="timePickerHeader">
<p>HH</p>
<p>MM</p>
<p>SS</p>
</div>
)}
/>,
document.getElementById("container")
);
.timePickerHeader {
position: float;
}
.timePickerHeader p {
display: inline-block;
width: 33%;
}