Skip to content

Latest commit

 

History

History
82 lines (49 loc) · 1.24 KB

ReactAddToCalendar.md

File metadata and controls

82 lines (49 loc) · 1.24 KB

react-add-to-calendar (component)

Props

buttonClassClosed

type: string defaultValue: 'react-add-to-calendar__button'

buttonClassOpen

type: string defaultValue: 'react-add-to-calendar__button--light'

buttonLabel

type: string defaultValue: 'Add to My Calendar'

buttonTemplate

type: object defaultValue: { caret: 'right' }

buttonWrapperClass

type: string defaultValue: 'react-add-to-calendar__wrapper'

displayItemIcons

type: bool defaultValue: true

dropdownClass

type: string defaultValue: 'react-add-to-calendar__dropdown'

event (required)

type: shape[object Object] defaultValue: { title: 'Sample Event', description: 'This is the sample event provided as an example only', location: 'Portland, OR', startTime: '2016-09-16T20:15:00-04:00', endTime: '2016-09-16T21:45:00-04:00' }

listItems

type: arrayOf[object Object] defaultValue: [ { apple: 'Apple Calendar' }, { google: 'Google' }, { outlook: 'Outlook' }, { outlookcom: 'Outlook.com' }, { yahoo: 'Yahoo' } ]

rootClass

type: string defaultValue: 'react-add-to-calendar'

optionsOpen

type: bool defaultValue: false