---
applyTo: "**"
---
# Mobiscroll for React — AI Rules (v5)

## Documentation Source

- **Primary (complete v5 docs):** {{DOCS_BASE_URL}}/5.35.0/llms-react-full.txt
- **TOC (links to .md pages):** {{DOCS_BASE_URL}}/5.35.0/llms-react.txt
- **Individual pages:** `{{DOCS_BASE_URL}}/react/{section}/{page}.md`
- **Icons (supplementary):** {{DOCS_BASE_URL}}/5.35.0/llms-icons.txt

## Scope

USE this file when:
- Project has `@mobiscroll/react` in package.json **and is on Mobiscroll v5**
- Files use `.tsx` or `.jsx` extensions
- Imports contain `from '@mobiscroll/react'`
- User explicitly mentions React + Mobiscroll v5

DO NOT use this file for Angular, Vue, JavaScript, or jQuery projects.
DO NOT use this file for Mobiscroll v6 projects — use `mobiscroll-react.mdc` instead.

**Version: 5.35.0.** Do not use v6-only APIs. Do not use this file for v6 projects.

## Version Mismatch

If the user mentions "v6", "version 6", "latest version", or asks about an API not found in the v5 docs, respond:

> "⚠️ This context is configured for Mobiscroll **v5 (5.35.0)**. The feature you asked about may only exist in v6. Do you want to switch to the v6 documentation instead?"

Never silently fall back to v6 documentation.

## Component Mapping

All scheduling views are ONE component: **Eventcalendar**, configured via the `view` option.

| Intent | Component | Doc Path |
|:---|:---|:---|
| Event calendar / scheduling | Eventcalendar | `react/eventcalendar/overview` |
| Monthly/weekly/daily grid | Eventcalendar (calendar view) | `react/eventcalendar/calendar` |
| Event list / agenda | Eventcalendar (agenda view) | `react/eventcalendar/agenda` |
| Resource scheduler | Eventcalendar (scheduler view) | `react/eventcalendar/scheduler` |
| Horizontal timeline | Eventcalendar (timeline view) | `react/eventcalendar/timeline` |
| Drag & drop | Eventcalendar | `react/eventcalendar/drag-and-drop` |
| CRUD operations | Eventcalendar | `react/eventcalendar/crud` |
| Recurring events | Eventcalendar | `react/core-concepts/recurrence` |
| Date / time picker | Datepicker | `react/datepicker/overview` |
| Dropdown select | Select | `react/select/overview` |
| Modal / overlay | Popup | `react/popup/overview` |
| Input, textarea, button | Forms | `react/forms/input` |
| Toast, snackbar, alert | Notifications | `react/notifications/toast` |
| Theming | Theming | `react/theming/sass-themes` |
| Full API reference | Eventcalendar API | `react/eventcalendar/api` |

## Rules

- Fetch `5.35.0/llms-react-full.txt` for complete v5 context
- Prefer `.md` pages over HTML — `.md` files are optimized for AI
- Use official v5 docs examples only — docs are the source of truth
- Package: `@mobiscroll/react` — no other Mobiscroll package
- CSS: `import '@mobiscroll/react/dist/css/mobiscroll.min.css'`
- Version: 5 (5.35.0). Do not reference v6-only APIs.
- Types are prefixed `Mbsc` (e.g., `MbscEventcalendarView`, `MbscCalendarEvent`)

## Constraints

- NEVER import from `@mobiscroll/angular`, `@mobiscroll/vue`, `@mobiscroll/javascript`, or `@mobiscroll/jquery`
- NEVER use Angular decorators, Vue composition API, or jQuery patterns in React code
- NEVER invent API options, events, methods, or types — if not found in v5 docs, say so
- NEVER treat Scheduler/Timeline/Agenda as separate components — they are views of Eventcalendar
- NEVER use Mobiscroll Connect docs for frontend UI (Connect = server-side REST API)
- NEVER use v6 documentation or v6-only APIs for this context
- If the framework is unclear, ASK — do not default to React
