Component API

<calendar-entry>

Open live example

Declarative metadata for one calendar event, consumed by a parent
calendar-month or calendar-year. Read-only/non-interactive; renders
nothing itself.

Install

import "@f-ewald/components/calendar-entry.js";

Usage

<calendar-entry
  start="2026-07-10"
  end="2026-07-18"
  label="Vacation"
  color="success"
>
  <span slot="title">Vacation</span>
  <span slot="detail">Out of office</span>
  <span slot="detail">Road trip along the California coast with several scenic stops</span>
  <span slot="footer">Return July 19 at 6 PM</span>
</calendar-entry>

Attributes / properties

PropertyAttributeTypeDefaultDescription
startstartstring""Inclusive start date, "YYYY-MM-DD".
endendstring""Inclusive end date, "YYYY-MM-DD". Falls back to start when unset (single-day entry).
labellabelstring""Fallback title used when no title slot is provided.
colorcolorStatusPillColor"neutral"Color variant, reusing status-pill's palette.
hrefhrefstring | undefined-Optional link target; the parent renders the entry as an <a> when set.

Events

None.

Slots

SlotDescription
titlePlain-text title shown instead of the label fallback.
detailRepeatable plain-text details rendered inside the shared body spanning all remaining days.
footerPlain-text ending note pinned to the bottom of the shared body.

CSS custom properties

None.