React · Features
Custom Labels
Customize button and label text
Button Labels
Change OK and Cancel button text:
Custom Buttons
Confirm and Close instead of OK and Cancel
index.tsxtsx
import { Timepicker } from "timepicker-ui-react";function App() {return (<Timepickeroptions={{labels: {ok: "Confirm",cancel: "Close"}}}/>);}
Localization
Translate labels to different languages:
index.tsxtsx
// Polish localization<Timepickerplaceholder="Wybierz czas"options={{labels: {ok: "Potwierdź",cancel: "Anuluj"}}}/>
Available Labels
index.tstypescript
// Visible text labels (options.labels)interface LabelsOptions {am?: string; // Default: "AM"pm?: string; // Default: "PM"ok?: string; // Default: "OK"cancel?: string; // Default: "Cancel"clear?: string; // Default: "Clear"clockTitle?: string; // Default: "Select time"keyboardTitle?: string; // Default: "Enter Time"hour?: string; // Default: "Hour"minute?: string; // Default: "Minute"second?: string; // Default: "Second"}