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

<mth-rrule-editor>

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

Form-associated RFC 5545 recurrence rule (RRULE) builder integrating FormControlController, expandRRule occurrence preview, and strict same-root shadow ARIA.

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-rrule-editor> (@methane-ui/ui)
Ready · interact with <mth-rrule-editor>, or toggle Theme, Direction (LTR/RTL), or props above.

Multi-Framework Playground & Snippets

<script type="module" src="@methane-ui/ui/rrule-editor"></script>
<mth-rrule-editor></mth-rrule-editor>

Properties & Attributes

PropertyAttributeTypeDefaultDescription
valuevaluestring""Serialized RFC 5545 RRULE string (e.g. FREQ=WEEKLY;INTERVAL=2;BYDAY=MO,FR).
namenamestring""Form field name submitted via ElementInternals.
labellabelstring""Accessible editor label.
hinthintstring""Supplementary helper text.
errorerrorstring""Explicit custom validation error message.
dtstartdtstartstring""Optional start date (YYYY-MM-DD) used by expandRRule to preview upcoming occurrences.
disableddisabledbooleanfalseDisables all interactive rule controls.
requiredrequiredbooleanfalseMarks a recurrence rule as required for form validation.
readonlyreadonlybooleanfalsePrevents edits while preserving form participation and focusability.

Events

EventDetail TypeDescription
mth-input{ value: string }Emitted immediately when any rule parameter changes.
mth-change{ value: string }Emitted when the rule value commits.

APG Keyboard Matrix

KeyDirectionWhenExpected Behavior
ArrowDownbothFrequency or end-mode select is focusedNavigates available recurrence options

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 1 APG keyboard transitions across LTR/RTL.mth-rrule-editor.spec.test.ts
statesExposes ElementInternals CustomStateSet flags: :state(disabled), :state(required), :state(readonly), :state(invalid).Conformance suite
i18nRoutes 7 UI/ARIA strings through @methane-ui/core i18n catalog.Locale context test