@gobrand/react-calendar 0.0.3 → 0.0.4
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 +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @gobrand/react-calendar
|
|
2
2
|
|
|
3
3
|
React hook for building calendars with the Temporal API.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
pnpm add @
|
|
8
|
+
pnpm add @gobrand/react-calendar
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Philosophy
|
|
@@ -18,7 +18,7 @@ pnpm add @temporal-calendar/react
|
|
|
18
18
|
## Quick Start
|
|
19
19
|
|
|
20
20
|
```tsx
|
|
21
|
-
import { useCalendar, createCalendarViews, createCalendarAccessor } from '@
|
|
21
|
+
import { useCalendar, createCalendarViews, createCalendarAccessor } from '@gobrand/react-calendar';
|
|
22
22
|
import { Temporal } from '@js-temporal/polyfill';
|
|
23
23
|
|
|
24
24
|
type Event = {
|
|
@@ -81,7 +81,7 @@ function MyCalendar() {
|
|
|
81
81
|
## Multi-View Calendar
|
|
82
82
|
|
|
83
83
|
```tsx
|
|
84
|
-
import { useCalendar, createCalendarViews } from '@
|
|
84
|
+
import { useCalendar, createCalendarViews } from '@gobrand/react-calendar';
|
|
85
85
|
|
|
86
86
|
const calendar = useCalendar({
|
|
87
87
|
data: events,
|
|
@@ -185,7 +185,7 @@ const accessor = createCalendarAccessor<Event>({
|
|
|
185
185
|
|
|
186
186
|
### Utility Functions
|
|
187
187
|
|
|
188
|
-
All utilities from `@
|
|
188
|
+
All utilities from `@gobrand/calendar-core` are re-exported:
|
|
189
189
|
|
|
190
190
|
**Formatting:**
|
|
191
191
|
- `getWeekdays(weekStartsOn?)` - Localized weekday names
|