Time Input Component

Time Input component is an input field for capturing hour and minute time data from user. Bissetii did a number of researches on its own and decided to only provide styling for proper HTML5 semantic syntax defined by w3.org.

This component is available starting from v1.12.1.

Hugo

All Time Input Hugo interface is directly supported by Form Component.

Go

All Time Input Go interface is directly supported by Form Component.

HTML

Expanding from Form Component, Time Input component is to facilitate selecting hours and minutes time format.

Most browsers are already supporting Time Input so no pattern= attribute is required.

In extreme cases where a browser fails to facilitate a datepicker user interface, the field will gracefully fallback to <input type="text">. Unless absoute necessary, facilitate the following pattern shall preserve the format:

1
(?:[01]|2(?![4-9]))\d:[0-5]\d

An all compatible attributes HTML syntax is shown as follows:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<label for="input-javascript-id">Time</label>
<input type="time"
	id="input-javascript-id"
	name="example"
	value="22:25"
	min="05:00"
	max="23:00"
	required
	disabled
	autofocus
	autocomplete
	readonly
/>

Here is an example:

CSS

All Time Input CSS variables is directly supported by Form Component.

Javascript

All Time Input Javascript is directly supported by Form Component.

Sass

All Time Input Sass is directly supported by Form Component.

Researches

Here are the researches done to ensure Time Input component meets the necessary quality assurances:

SCHEDULED COMING SOON

Epilogue

That’s all about Time Input component in Bissetii. If you need more feature or need to report a bug, please feel free to file an issue at our Issue Section.