Skip to content

TimeField

Source: client/lib/theme/vueda-tailwind/controls/index.js

The input-shell variant for editable time segments (hour / minute, plus optional second / period). See also: DateField.root; identical shell and size-tier recipe, only the segment set inside differs.

Vue component: TimeField

SlotDefault classesDescription
rootcallbackThe input-shell variant for editable time segments (hour / minute, plus optional second / period). See also: DateField.root; identical shell and size-tier recipe, only the segment set inside differs.

root

The input-shell variant for editable time segments (hour / minute, plus optional second / period). See also: DateField.root; identical shell and size-tier recipe, only the segment set inside differs.

Callback:

javascript
({ size }) => ({
            class: [
                // Shell and surface.
                "dark:bg-input/30 flex w-full items-center rounded-vueda-field hairline bg-transparent text-sm shadow-vueda-control transition-shadow",

                // Focus, read-only, and disabled states.
                "focus-within:hairline-ring focus-within:focus-ring-shadow data-[readonly]:bg-muted/50 disabled:cursor-not-allowed disabled:opacity-50",
                "aria-invalid:hairline-destructive focus-within:aria-invalid:focus-ring-shadow-destructive",

                // Size classes.
                {
                    "h-vueda-control px-vueda-control-px": !size || size === "default",
                    "h-vueda-control-sm px-vueda-control-px-sm": size === "sm",
                    "h-vueda-control-lg px-vueda-control-px-lg": size === "lg",
                },
            ],
        })

Source: client/lib/theme/vueda-tailwind/controls/TimeField.theme.js:17

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2