Skip to content
W WRNexusJS
forms component

SchedulePicker

Reusable schedule picker component.

@wrnexus/ui 0.2.672 props0 slots0 events

Usage

Components are auto-discovered. Use the component directly in any .wrn view:

<SchedulePicker
  label="Schedule"
/>

Legacy mount name: data-component="SchedulePicker".

Props and attributes

PropTypeRequirementDefault
classstringOptional""
labelstringOptional"Schedule"

Slots

This component does not declare a slot.

Events

This component does not declare a custom event.

Source contract

Installed source: components/SchedulePicker.wrn

component SchedulePicker {
  props {
    class = ""
    label = "Schedule"
  }
  view {
        <fieldset class="space-y-4 rounded-2xl border border-slate-200 p-5 dark:border-slate-800 {class}">
        <legend class="px-2 font-semibold">{label}</legend>
        <DateTimeInput id="scheduleAt" name="scheduleAt" label="Date and time" />
        <TimezoneSelector />
        </fieldset>
    }
}