TimeSelect

Type: React component

How to get TimeSelect?

JavaScript

import { TimeSelect } from 'fds/components';

Three SingleAutocomplete components, used for selecting and hour, minute and second value. This component doesn't support selecting a date value (year, month and day), if this is desired consider using a CalendarInput or DateTimeSelect instead.

Props

  1. hoursPlaceholder

    (Optional)

    Type: String

    The placeholder text displayed in component when it is empty, i.e. has no values.

    Default value

  2. isDisabled

    (Optional)

    Type: Boolean

    Whether or not the component should be rendered in a disabled state.

    Default value

  3. minutesPlaceholder

    (Optional)

    Type: String

    The placeholder text displayed in component when it is empty, i.e. has no values.

    Default value

  4. name

    (Optional)

    Type: String

    The name of this component to identify it (and its value) when used inside an intelligent container component which aggregates its children (and/or their values), like a Form.

    Default value

  5. onChange

    (Optional)

    Type: Function

    A callback that is called whenever a component's value changes.

    This callback is called just before the "validate" prop is called.

    Use this callback to update local state which in turn should update the value prop of the component whose callback just fired.

    Arguments

    Default value

  6. secondsPlaceholder

    (Optional)

    Type: String

    The placeholder text displayed in component when it is empty, i.e. has no values.

    Default value

  7. tooltipContent

    (Optional)

    Type: String | ReactElement

    The content of the tooltip that is displayed when hovering over the whole component.

    • string: the textual content of the tooltip

    • ReactElement: a React Element (instance of a React Component, usually created with JSX)

    Default value

  8. value

    (Optional)

    Type: Object

    The current value of the component. This value should be a valid JavaScript date.

    Related links

    Default value

  9. isBorderless

    (Required)

    Default value

  10. onPositionerMount

    (Required)

    Default value

  11. onPositionerUnmount

    (Required)

    Default value