Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 513 Bytes

File metadata and controls

18 lines (12 loc) · 513 Bytes

Time

The most basic usage of the component is to simply reference it with a name attribute:

<x-time name="created_at" />

This will output the following HTML:

<input name="created_at" type="time" id="created_at" class="form-control">

You can use this component in the same way as the "Input" component because it extends it.

Reference on MDN, especially for attributes