1.0.4 • Published 2 years ago

@odyssoft/calendar v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@odyssoft/calendar

Full screen calendar built using React, storybook, Mui, Mui-icons & emotion

Preview

Installation

npm install @odyssoft/calendar

Usage

import { Calendar } from '@odyssoft/calandar'

export const MyComponent = () => (
  <div style={{ display: 'flex', height: '100vh', width: '100vw' }}>
    <Calendar />
  </div>
)

Props

PropRequiredValuesDefault Value
datanoCalendarEvent[][]
defaultViewno'day' | 'week' | 'month' | 'year''month'
editablenotrue | falsefalse
navigationnotrue | falsefalse
onEventChangenocallback functionundefined
sidebarnotrue | falsefalse
viewsno('day' | 'week' | 'month' | 'year')[]'day', 'week', 'month', 'year'

CalendarEvent type

AttributeRequiredValuesDefault ValueDescription
allDaynobooleanfalseIf false or undefined, start and end date will need to be DateTimeType. When true start and end date will need to be DateType
calendaryesCalendarType
descriptionnostring
endyesDateType | DateTimeType
idyesstring
startyesDateType | DateTimeType
titleyesstring

DateType

string in the date format 'DD-MM-YYYY'

DateTimeType

string in the date format 'DD-MM-YYYY HH:mm

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago