Methane@methane-ui/*
CSS LayoutsComponentsSkillsTheme BuilderGitHub
← All Components

<mth-cron-builder>

@methane-ui/ui~7.9 KB brotli (cold + Lit)~2.0 KB marginal

Form-associated 5-field cron expression builder with quick presets and human-readable schedule summary.

When NOT to use: Use a lightweight @methane-ui/css layout class instead of a custom element when static CSS suffices.

Live Interactive Preview

Interactive StageLive Custom Element · <mth-cron-builder> (@methane-ui/ui)
Ready · interact with <mth-cron-builder>, or toggle Theme, Direction (LTR/RTL), or props above.

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/ui/cron-builder"></script>
<mth-cron-builder value="0 * * * *"></mth-cron-builder>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
valuevaluestring"0 * * * *"Five-field cron expression string (minute hour day-of-month month day-of-week).
namenamestring""Form field name.
labellabelstring""Accessible field label.
disableddisabledbooleanfalseDisables interaction.
readonlyreadonlybooleanfalsePrevents editing cron fields or applying presets.
requiredrequiredbooleanfalseMarks a cron expression as required.

Events

EventDetail TypeDescription
mth-change{ value: string }Fired when the cron expression changes.

APG Keyboard Matrix

KeyDirectionWhenExpected Behavior
EnterbothPreset button is focusedApplies preset 5-field cron expression
TabbothMoving across cron fieldsMoves focus sequentially across minute, hour, day, month, and weekday inputs

Accessibility Checklist

CategoryRequirementVerified By
ariaAll aria-* IDREFs resolve within the same DOM root (ADR-003).scanSameRootAria
focusdelegatesFocus: true with zero host internals.role (ADR-014).lint-plugin & spec-compiler
contrastRenders legible borders, focus outlines, and selection indicators under forced-colors: active.Playwright forced-colors matrix
keyboardImplements all 2 APG keyboard transitions across LTR/RTL.mth-cron-builder.spec.test.ts
statesExposes ElementInternals CustomStateSet flags: :state(disabled), :state(readonly), :state(dirty), :state(touched), :state(invalid).Conformance suite
i18nRoutes 8 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test