mcpField
S
syncfusion-react-datetimepicker

syncfusion-react-datetimepicker

github.com/syncfusionDevelopment3167 installsUpdated 1w ago
Repository

About syncfusion-react-datetimepicker

A documentation skill for building Syncfusion’s React DateTimePicker. It covers combined date and time selection, constraints, configuration, events, accessibility, and advanced input behavior.

Key features

  1. 01Combined date and time selection
  2. 02Date and time constraints
  3. 03Time steps and masked input
  4. 04Localization and keyboard settings
  5. 05Events and styling guidance
  6. 06Accessibility and advanced feature guides

Use cases

  1. 01Add date and time input to a React app
  2. 02Restrict selectable dates and times
  3. 03Configure localized or masked input
  4. 04Support keyboard-based date selection

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-datetimepicker

After installing, type/syncfusion-react-datetimepickerin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
accessibility.md
advanced-features.md
api-reference.md
date-time-selection.md
events-and-methods.md
getting-started.md
styling-and-customization.md
time-configuration.md

Details

From the project README

DateTimePicker (implementing-datetimepicker)

Component Overview

The Syncfusion DateTimePickerComponent provides a combined calendar and time picker with extensive configurability: min/max dates, time steps, masked input, localization, strict validation, RTL, and accessible keyboard navigation.

Documentation (read these references in order)

Quick Start (React + TypeScript)

  1. Install package:
npm install @syncfusion/ej2-react-calendars
  1. Import styles (in index.css or component CSS):
@import '../node_modules/@syncfusion/ej2-base/styles/material3.css';
@import '../node_modules/@syncfusion/ej2-calendars/styles/material3.css';
  1. Minimal functional example (App.tsx):
import React, { useState } from 'react';
import { DateTimePickerComponent } from '@syncfusion/ej2-react-calendars';

export default function App() {
  const [value, setValue] = useState<Date | null>(new Date());

  return (
    <div style={{ padding: 20 }}>
      <h3>Choose date and time</h3>
      <DateTimePickerComponent
        value={value}
        change={(e) => setValue((e as any).value)}
        format="dd/MM/yyyy hh:mm a"
        step={15}
        placeholder="Select date and time"
      />
      <p>Selected: {value ? value.toString() : 'none'}</p>
    </div>
  );
}

Common Patterns

  • Controlled value: bind value and update on change.
  • Range enforcement: use min and max for dates, minTime/maxTime for times.
  • Masked input: enable with enableMask and provide maskPlaceholder.
  • Localization: set locale or use global culture settings.
  • Keyboard-first: provide keyConfigs for custom shortcuts.

Key Props Summary (see API reference for full list)

  • value, min, max, step, format, enableMask, placeholder, cssClass, locale, readonly, enabled.

Key Events

  • change, open, close, created, destroyed, navigated, blur, focus, renderDayCell.

Next steps

  • All reference files have been created and validated against the official Syncfusion API (see references/api-reference.md).
  • Next: run the test-case guide and validation checks, then create automated examples or add platform-specific notes on request.
  • Ask me to run tests, update completion-status.json, or produce publish-ready artifacts.

Comments

Markdown supported