Time pickers allow users to input a specific time.

    Component Status

    image2020-8-14_10-41-45.png Design Kit:                                                   RELEASED

    image2020-8-14_10-49-41.pngBobwai component: bobwai--timepicker   RELEASED



    Usage

    Use when asking the user to input a specific time or schedule a task. 


    Anatomy

      • Label
      • Time input - used to manually enter the time.
      • Clock icon - opens the time picker component.
      • Hour spinner - selects hours.
      • Minute spinner - selects minutes.
      • AM/PM spinner (optional) - selects the AM/PM value.

    Appearance

    Default

    Most of the use cases.

    Condensed 

    Used if we need to display long forms, e.g. Scaler.

    Placeholder

    Used as empty state.

    Behavior

    States

    Focused

    Used as focused state.

    Disabled

    Used as disabled state.

    Error

    Error validation is displayed on hover over an exclamation mark. 

    Interactions

    Manual

    • Users can use the input to manually type the time.

    Spinners

    • Users can use the clock icon to open the time input spinners and use them to set the time.

    Keyboard Input 

    • By clicking inside, users can select hours/minutes/AM or PM information, after that users can navigate and manage settings using arrow keys.

    Time Format

    • Time picker’s format should be customized (e.g. depending on the location or language).
    • E.g. US English uses 12-hour notation almost exclusively (12:49 PM or 4:59 AM).
    • For more information see the Content section.

    Editorial

    • The labels should be clear and descriptive.
    • Labels uses sentence case.

    Related Components

    Date Picker - Calendar - Use a calendar picker when the user needs to know a date’s relationship to other days. It allows the user to view and pick dates from a calendar widget.

    Typography

    Token

    Type

    Used In

    font-heading150

    Heading 1 Alt (H1)

    heading

    font-body Body  body

    Color

    Token

    Type

    Used In

    white

    background-color

    background-color

    basic text color heading, body text

    border

    Sizing

    Token

    Type

    Used In

    width-00px



    width-00px



    width-00px



    Spacing

    Token

    PX 

    Type

    Used In

    spacing-xx-small

    2



    spacing-x-small

    4



    spacing-small

    8



    spacing-medium

    12



    spacing-large

    16



    spacing-x-large

    24





    Accessibility

    • Add ARIA role role=”” to










    Attachments:

    Snímek obrazovky 2020-11-18 v 13.17.49.png (image/png)
    Time_picker-anatomy.png (image/png)
    Snímek obrazovky 2020-11-25 v 9.25.02.png (image/png)
    Snímek obrazovky 2020-11-25 v 9.24.53.png (image/png)
    Snímek obrazovky 2020-11-25 v 9.27.22.png (image/png)
    Snímek obrazovky 2020-11-25 v 9.27.08.png (image/png)
    Snímek obrazovky 2020-11-25 v 9.29.10.png (image/png)
    Time_picker-error.png (image/png)
    image2020-12-1_10-57-14.png (image/png)
    image2020-12-1_10-59-46.png (image/png)
    image2020-11-27_15-46-5.png (image/png)
    Time_picker-label.png (image/png)
    Time_picker-disabled.png (image/png)
    Time_picker-focus.png (image/png)
    Time_picker-placeholder.png (image/png)
    image2020-11-30_14-8-32.png (image/png)
    image2020-11-27_12-13-3.png (image/png)
    image2020-11-27_12-24-3.png (image/png)
    image2020-11-30_14-17-56.png (image/png)
    Context-menu-type-multilevel.png (image/png)
    image2020-11-27_15-19-14.png (image/png)
    image2020-11-27_15-14-27.png (image/png)
    Time_picker-placeholder.png (image/png)
    Time_picker-focus.png (image/png)
    Time_picker-error.png (image/png)
    Time_picker-focus.png (image/png)
    Time_picker-disabled.png (image/png)
    Time_picker-anatomy.png (image/png)
    Time_picker-anatomy.png (image/png)
    Time_picker-anatomy.png (image/png)
    Time_picker-small.png (image/png)
    Time_picker-label.png (image/png)
    Time_picker-placeholder.png (image/png)
    Time_picker-focus.png (image/png)
    Time_picker-disabled.png (image/png)
    Time_picker-error.png (image/png)
    Time_picker-error-1.png (image/png)
    Time_picker-screen.png (image/png)
    image2021-2-8_18-3-8.png (image/png)