← All Components
<mth-rrule-editor>
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
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>import '@methane-ui/ui/rrule-editor';
import '@methane-ui/react';
export function Example() {
return <mth-rrule-editor></mth-rrule-editor>;
}<script setup lang="ts">
import '@methane-ui/ui/rrule-editor';
</script>
<template>
<mth-rrule-editor></mth-rrule-editor>
</template>import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import '@methane-ui/ui/rrule-editor';
import { MthRruleEditorDirective } from '@methane-ui/angular';
@Component({
standalone: true,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [MthRruleEditorDirective],
template: `<mth-rrule-editor></mth-rrule-editor>`,
})
export class ExampleComponent {}<script lang="ts">
import '@methane-ui/ui/rrule-editor';
import MthRruleEditor from '@methane-ui/svelte/MthRruleEditor.svelte';
</script>
<MthRruleEditor></MthRruleEditor>Properties & Attributes
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
value | value | string | "" | Serialized RFC 5545 RRULE string (e.g. FREQ=WEEKLY;INTERVAL=2;BYDAY=MO,FR). |
name | name | string | "" | Form field name submitted via ElementInternals. |
label | label | string | "" | Accessible editor label. |
hint | hint | string | "" | Supplementary helper text. |
error | error | string | "" | Explicit custom validation error message. |
dtstart | dtstart | string | "" | Optional start date (YYYY-MM-DD) used by expandRRule to preview upcoming occurrences. |
disabled | disabled | boolean | false | Disables all interactive rule controls. |
required | required | boolean | false | Marks a recurrence rule as required for form validation. |
readonly | readonly | boolean | false | Prevents edits while preserving form participation and focusability. |
Events
| Event | Detail Type | Description |
|---|---|---|
mth-input | { value: string } | Emitted immediately when any rule parameter changes. |
mth-change | { value: string } | Emitted when the rule value commits. |
APG Keyboard Matrix
| Key | Direction | When | Expected Behavior |
|---|---|---|---|
| ArrowDown | both | Frequency or end-mode select is focused | Navigates available recurrence options |
Accessibility Checklist
| Category | Requirement | Verified By |
|---|---|---|
| aria | All aria-* IDREFs resolve within the same DOM root (ADR-003). | scanSameRootAria |
| focus | delegatesFocus: true with zero host internals.role (ADR-014). | lint-plugin & spec-compiler |
| contrast | Renders legible borders, focus outlines, and selection indicators under forced-colors: active. | Playwright forced-colors matrix |
| keyboard | Implements all 1 APG keyboard transitions across LTR/RTL. | mth-rrule-editor.spec.test.ts |
| states | Exposes ElementInternals CustomStateSet flags: :state(disabled), :state(required), :state(readonly), :state(invalid). | Conformance suite |
| i18n | Routes 7 UI/ARIA strings through @methane-ui/core i18n catalog. | Locale context test |