Files
react-add-to-calendar/docs/ReactAddToCalendar.md
T

80 lines
1.2 KiB
Markdown
Raw Normal View History

`react-add-to-calendar` (component)
2016-10-06 16:12:34 -07:00
===============
Props
-----
2016-10-06 16:12:34 -07:00
### `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' }`
2016-10-06 16:12:34 -07:00
### `buttonWrapperClass`
type: `string`
defaultValue: `'react-add-to-calendar__wrapper'`
### `displayItemIcons`
type: `bool`
defaultValue: `true`
2016-10-06 16:12:34 -07:00
### `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' },
2017-05-03 19:16:50 -04:00
{ outlookcom: 'Outlook.com' },
{ yahoo: 'Yahoo' }
]`
2016-10-06 16:12:34 -07:00
### `rootClass`
type: `string`
defaultValue: `'react-add-to-calendar'`