--- title: "Timepicker" slug: timepicker category: component type: technical-information version: 20.0.0 tokens: 723 source: https://ovh.github.io/design-system/v20.0.0/llms/react-components-timepicker--technical-information.txt --- # Timepicker ## Timepicker This component extends all the native `
` attributes. | Property | Type | Required | Default | Description | |---|---|---|---|---| | `defaultValue` | `string` | No | undefined | The initial time value. Use when you don't need to control the value of the timepicker. | | `disabled` | `boolean` | No | undefined | Whether the component is disabled. | | `i18n` | `Partial` | No | undefined | Internal translations override. | | `invalid` | `boolean` | No | undefined | Whether the component is in error state. | | `locale` | `'fr' | 'de' | 'en' | 'es' | 'it' | 'nl' | 'pl' | 'pt'` | No | undefined | The locale used for the translation of the internal elements. | | `name` | `string` | No | undefined | The name of the form element. Useful for form submission. | | `onTimezoneChange` | `(detail: TimepickerTimezoneChangeDetail) => void` | No | undefined | Callback fired when the timezone changes. | | `onValueChange` | `(detail: TimepickerValueChangeDetail) => void` | No | undefined | Callback fired when the value changes. | | `readOnly` | `boolean` | No | undefined | Whether the component is readonly. | | `required` | `boolean` | No | undefined | Whether the component is required. | | `timezone` | `'UTC-12' | 'UTC-11' | 'UTC-10' | 'UTC-9' | 'UTC-8' | 'UTC-7' | 'UTC-6' | 'UTC-5' | 'UTC-4' | 'UTC-3' | 'UTC-2' | 'UTC-1' | 'UTC+0' | 'UTC+1' | 'UTC+2' | 'UTC+3' | 'UTC+4' | 'UTC+5' | 'UTC+6' | 'UTC+7' | 'UTC+8' | 'UTC+9' | 'UTC+10' | 'UTC+11' | 'UTC+12'` | No | undefined | The controlled selected timezone. | | `timezones` | `'UTC-12' | 'UTC-11' | 'UTC-10' | 'UTC-9' | 'UTC-8' | 'UTC-7' | 'UTC-6' | 'UTC-5' | 'UTC-4' | 'UTC-3' | 'UTC-2' | 'UTC-1' | 'UTC+0' | 'UTC+1' | 'UTC+2' | 'UTC+3' | 'UTC+4' | 'UTC+5' | 'UTC+6' | 'UTC+7' | 'UTC+8' | 'UTC+9' | 'UTC+10' | 'UTC+11' | 'UTC+12'[] | 'all'` | No | undefined | A specific or preset list of timezone to display in the selector. | | `value` | `string` | No | undefined | The controlled timepicker value. | | `withSeconds` | `boolean` | No | undefined | Whether the time input allows seconds selection. | ## TimepickerControl _No specific property._ ## TimepickerTimezoneList This component extends all the native `
` attributes. _No specific property._ ## Enums ### TIMEPICKER_I18N - `timezoneSelect` = `timepicker.timezone.select` ### TIMEZONE - `UTC` = `UTC+0` - `UTC_1` = `UTC-1` - `UTC_10` = `UTC-10` - `UTC_11` = `UTC-11` - `UTC_12` = `UTC-12` - `UTC_2` = `UTC-2` - `UTC_3` = `UTC-3` - `UTC_4` = `UTC-4` - `UTC_5` = `UTC-5` - `UTC_6` = `UTC-6` - `UTC_7` = `UTC-7` - `UTC_8` = `UTC-8` - `UTC_9` = `UTC-9` - `UTC1` = `UTC+1` - `UTC10` = `UTC+10` - `UTC11` = `UTC+11` - `UTC12` = `UTC+12` - `UTC2` = `UTC+2` - `UTC3` = `UTC+3` - `UTC4` = `UTC+4` - `UTC5` = `UTC+5` - `UTC6` = `UTC+6` - `UTC7` = `UTC+7` - `UTC8` = `UTC+8` - `UTC9` = `UTC+9` ### TIMEZONES_PRESET - `all` = `all`