Skip to content

Component: Locale-aware Date Formatter #4

Open

Description

@sapatmohit

Component: Locale-aware Date Formatter

Build a date formatting component that automatically formats dates based on the user's locale.

Requirements

  • TypeScript-first with exported props interface
  • Uses Intl.DateTimeFormat under the hood
  • Supports custom format options (date, time, datetime, relative)
  • RTL-aware
  • Tailwind CSS compatible

Expected API

<LocaleDate
  date={new Date("2026-08-15")}
  locale="fr-FR"
  format="datetime"
/>

Deliverables

  • Component source in src/registry/components/
  • Documentation page in content/docs/components/

See CONTRIBUTING.md.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    componentNew or modified componentdate-timeDate/time picker and formatter componentsgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions