Code Component Editor: Add a Date (and maybe also a DateTime) prop type(s)

Created on 9 January 2026, 22 days ago

Overview

SDC's allow props with schema: type: string, format: date or type: string, format: date-time, but neither of these are currently included in the Type drop-down when defining props in the Code Component Editor.

It would be good to allow Code Components to receive date props, which would enable a content editor to populate it statically with a calendar widget or dynamically by linking to a date field that's on the node.

Proposed resolution

  • Add a Date option in the Type drop-down.
  • Possibly also add a "Date and time" option, or include that as a separate checkbox for the Date option, or punt on date-time to a follow-up if we want to think more about whether to make it a separate top-level type choice or a sub-choice of Date.

User interface changes

New option(s) added to the Type drop-down.

✨ Feature request
Status

Active

Version

1.0

Component

Component sources

Created by

πŸ‡ΊπŸ‡ΈUnited States effulgentsia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024