StellarUI

<stellar-time-field>

Properties

Preview

Markup

Copy
<stellar-time-field
  label="Start time"
  value="08:30"
  min="07:00"
  max="18:00"
  step="300"
>
</stellar-time-field>

API

Complete props, events, slots, and implementation notes for the shipped time field.

Props

PropTypeDefaultNotes
toneneutral | primary | secondary | tertiary | errorneutral
appearancedefault | ghostdefault
sizexs | sm | md | lg | xlmd
labelstring''
descriptionstring''
errorstring''
clampbooleanfalse
valuestring''
namestring''
minstring''
maxstring''
stepstring''
disabledbooleanfalse
readonlybooleanfalse

Events

EventKindNotes
inputhost eventFires whenever the time value changes during editing so data-bind:value stays live.
changehost eventFires when the native time input commits a value change.

Slots

SlotNotes

Notes

  • The public tag is `stellar-time-field`, shipped as a dedicated time-field control instead of another `stellar-text-field type="time"` variation.
  • It keeps a real native `<input type="time">` inside for keyboard, picker, and form behavior.
  • `value`, `min`, and `max` use the native `HH:MM` shape, while `step` is forwarded in seconds.
  • `clamp` snaps out-of-range values back inside `min`/`max` on blur.
  • `required`, `readonly`, `disabled`, `name`, `min`, `max`, and `step` forward to the inner native time input.
  • `required`, `aria-invalid`, and `custom-validity` forward to the inner native time input for validation-sensitive flows.
  • The host exposes `setCustomValidity()`, `checkValidity()`, `reportValidity()`, `validity`, `validationMessage`, and `willValidate`, so app code can use native-like validity APIs on the custom element.
  • For Datastar, prefer `data-attr:custom-validity="..."` on the custom element host instead of the Pro-only `data-custom-validity` attribute.
  • Use `data-bind:value` when binding it from Datastar or when wiring other docs controls to calendar props.