Custom Date Header
Usage
theme="ios" You can turn auto theming on and let it decide based on the platform.
Usage
themeVariant="light" You can turn auto dark mode on based on system settings.
Usage
clickToCreate={true}
// click to create is on dragToCreate={true}
// drag to create is on dragToMove={true}
// reordering is on dragToResize={true}
// resizing is on eventDelete={true}
// deleting is on Fine-tune drag & drop with these options, which are false by default.
Usage
locale={localeEn} Selecting the locale loads the localized settings and the translated UI text.
Custom Date Header
Customize the date headers of the scheduler by adding relevant content, labels or completely change how they look. Use the renderSchedulerDay option for rendering a custom date header.
Demo

Code
View code on GitHub
import { Eventcalendar, formatDate, getJson, setOptions } from '@mobiscroll/react';
import { useCallback, useEffect, useMemo, useState } from 'react';
setOptions({
locale: ,
theme: ' ',
themeVariant: ' '
});
const milestones = [
{
date: '2026-10-28T00:00',
name: 'Project review',
color: '#f5da7b',
},
{
date: '2026-10-29T00:00',
name: 'Product shipping',
color: '#acf3a3',
},
{
date: '2026-10-31T00:00',
name: 'Cycle finish',
color: '#ff84a0',
},
];
function App() {
const [myEvents, setEvents] = useState([]);
const calView = useMemo(
() => ({
scheduler: {
type: 'week',
allDay: false,
startDay: 1,
endDay: 5,
startTime: '08:00',
endTime: '17:00',
},
}),
[],
);
const myResources = useMemo(
() => [
{
id: 1,
name: 'Ryan',
color: '#f7c4b4',
img: 'https://img.mobiscroll.com/demos/m1.png',
},
{
id: 2,
name: 'Kate',
color: '#c6f1c9',
img: 'https://img.mobiscroll.com/demos/f1.png',
},
{
id: 3,
name: 'John',
color: '#e8d0ef',
img: 'https://img.mobiscroll.com/demos/m2.png',
},
],
[],
);
const renderCustomDay = useCallback((args) => {
const date = args.date;
const task = milestones.find((obj) => +new Date(obj.date) === +date) || {};
return (
<div className="header-template-container">
<div className="header-template-date">
<div className="header-template-day-name">{formatDate('DDDD', date)}</div>
<div className="header-template-day">{formatDate('MMMM DD', date)}</div>
</div>
<div className="header-template-task" style={{ background: task.color }}>
{task.name}
</div>
</div>
);
}, []);
const renderCustomResource = useCallback(
(resource) => (
<div className="header-resource-template-content">
<img className="header-resource-avatar" src={resource.img} />
<div className="header-resource-name">{resource.name}</div>
</div>
),
[],
);
useEffect(() => {
getJson(
'https://trial.mobiscroll.com/resource-events/',
(events) => {
setEvents(events);
},
'jsonp',
);
}, []);
return (
<Eventcalendar
clickToCreate={ }
dragToCreate={ }
dragToMove={ }
dragToResize={ }
eventDelete={ }
view={calView}
data={myEvents}
resources={myResources}
groupBy="date"
renderSchedulerDay={renderCustomDay}
renderResource={renderCustomResource}
/>
);
}
export default App;
import {
Eventcalendar,
formatDate,
getJson,
// MbscCalendarDayData,
MbscCalendarEvent,
MbscEventcalendarView,
MbscResource ,
} from '@mobiscroll/react';
import { FC, useCallback, useEffect, useMemo, useState } from 'react';
const milestones = [
{
date: '2026-10-28T00:00',
name: 'Project review',
color: '#f5da7b',
},
{
date: '2026-10-29T00:00',
name: 'Product shipping',
color: '#acf3a3',
},
{
date: '2026-10-31T00:00',
name: 'Cycle finish',
color: '#ff84a0',
},
];
const App: FC = () => {
const [myEvents, setEvents] = useState<MbscCalendarEvent[]>([]);
const myView = useMemo<MbscEventcalendarView>(
() => ({
scheduler: {
type: 'week',
allDay: false,
startDay: 1,
endDay: 5,
startTime: '08:00',
endTime: '17:00',
},
}),
[],
);
const myResources = useMemo<MbscResource[]>(
() => [
{
id: 1,
name: 'Ryan',
color: '#f7c4b4',
img: 'https://img.mobiscroll.com/demos/m1.png',
},
{
id: 2,
name: 'Kate',
color: '#c6f1c9',
img: 'https://img.mobiscroll.com/demos/f1.png',
},
{
id: 3,
name: 'John',
color: '#e8d0ef',
img: 'https://img.mobiscroll.com/demos/m2.png',
},
],
[],
);
const renderCustomDay = useCallback((args: { date: Date }) => {
const date = args.date;
const task: { date?: string; name?: string; color?: string } = milestones.find((obj) => +new Date(obj.date) === +date) || {};
return (
<div className="header-template-container">
<div className="header-template-date">
<div className="header-template-day-name">{formatDate('DDDD', date)}</div>
<div className="header-template-day">{formatDate('MMMM DD', date)}</div>
</div>
<div className="header-template-task" style={{ background: task.color || '' }}>
{task.name || ''}
</div>
</div>
);
}, []);
const renderCustomResource = useCallback(
(resource: MbscResource) => (
<div className="header-resource-template-content">
<img className="header-resource-avatar" src={resource.img} alt="Avatar" />
<div className="header-resource-name">{resource.name}</div>
</div>
),
[],
);
useEffect(() => {
getJson(
'https://trial.mobiscroll.com/resource-events/',
(events: MbscCalendarEvent[]) => {
setEvents(events);
},
'jsonp',
);
}, []);
return (
<Eventcalendar
clickToCreate={ }
dragToCreate={ }
dragToMove={ }
dragToResize={ }
eventDelete={ }
view={myView}
data={myEvents}
resources={myResources}
groupBy="date"
renderSchedulerDay={renderCustomDay}
renderResource={renderCustomResource}
/>
);
};
export default App;
.md-date-header-template .mbsc-schedule-header-day-cont {
display: block;
}
.header-template-container {
padding: 10px;
}
.header-template-date {
text-align: left;
line-height: 20px;
}
.header-template-day-name {
font-weight: bold;
}
.header-template-day {
font-size: 12px;
}
.header-template-task {
position: absolute;
top: 14px;
right: 10px;
font-size: 12px;
line-height: 22px;
padding: 0 10px;
border-radius: 12px;
color: #555;
}
.header-resource-template-content {
position: relative;
}
.header-resource-avatar {
max-height: 40px;
max-width: 40px;
}
.header-resource-name {
font-size: 14px;
}