@ilamy/calendar 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -41
- package/dist/index.cjs +377 -361
- package/dist/index.d.cts +39 -35
- package/dist/index.d.ts +39 -35
- package/dist/index.js +291 -280
- package/package.json +16 -13
package/README.md
CHANGED
|
@@ -15,44 +15,4 @@ A powerful, full-featured React calendar component library built with TypeScript
|
|
|
15
15
|
|
|
16
16
|
## Documentation
|
|
17
17
|
|
|
18
|
-
For comprehensive documentation, examples, and interactive demos, visit [
|
|
19
|
-
|
|
20
|
-
## Installation
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
npm install @ilamy/calendar
|
|
24
|
-
# or
|
|
25
|
-
yarn add @ilamy/calendar
|
|
26
|
-
# or
|
|
27
|
-
pnpm add @ilamy/calendar
|
|
28
|
-
# or
|
|
29
|
-
bun add @ilamy/calendar
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Quick Start
|
|
33
|
-
|
|
34
|
-
```tsx
|
|
35
|
-
import React from 'react'
|
|
36
|
-
import { IlamyCalendar, useIlamyCalendarContext } from '@ilamy/calendar'
|
|
37
|
-
|
|
38
|
-
function App() {
|
|
39
|
-
return (
|
|
40
|
-
<div className="h-screen p-4">
|
|
41
|
-
<IlamyCalendar
|
|
42
|
-
initialEvents=[
|
|
43
|
-
{
|
|
44
|
-
title: 'My Event',
|
|
45
|
-
start: '2025-01-20T19:57:55.476Z',
|
|
46
|
-
end: '2025-01-25T19:57:55.476Z'
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
dayMaxEvents={3}
|
|
50
|
-
onEventClick={(event) => console.log('Event clicked:', event)}
|
|
51
|
-
onCellClick={(start, end) => console.log('Date clicked:', start, end)}
|
|
52
|
-
/>
|
|
53
|
-
</div>
|
|
54
|
-
)
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export default App
|
|
58
|
-
```
|
|
18
|
+
For comprehensive documentation, examples, and interactive demos, visit [ilamy.dev](https://ilamy.dev)
|