Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mcnallydev/react-md-calendar

React Component Material Design Calendar.
https://github.com/mcnallydev/react-md-calendar

Last synced: 29 days ago
JSON representation

React Component Material Design Calendar.

Awesome Lists containing this project

README

        

# react-md-calendar

React Component Material Design Calendar.

### Screenshots

_base look_

![Base look](https://github.com/icarus-sullivan/react-calendar-material/raw/master/images/base.jpg)

_selection_

![Selection](https://github.com/icarus-sullivan/react-calendar-material/raw/master/images/selection.jpg)

_no header_

![No header](https://github.com/icarus-sullivan/react-calendar-material/raw/master/images/no-header.jpg)

_horizontal_

![Horizontal](https://github.com/icarus-sullivan/react-calendar-material/raw/master/images/horizontal.jpg)

### Installation
```
yarn add react-md-calendar
```

### Options
The current list of propTypes.

- **_locale (String)_** - the locale [en, es]
- **_accentColor (String)_** - the theme color of the calendar
- **_orientation_ (String)** - whether to show the calendar to the right of the header or below it
- **_'flex-row'_** show the calendar after the date
- **_'flex-col'_** show the calendar below the date
- **_showHeader (Boolean)_** - whether to show the header for the calendar
- **_onDatePicked (Function)_** - a callback for when a date is picked

### Usage

The following example shows the simplest case with all four props passed into our Calendar component.

```jsx
import React from 'react';
import ReactDOM from 'react-dom';
import Calendar from 'react-md-material';

ReactDOM.render(
{
console.log('onDatePicked', d);
}}/>,
document.getElementById('root')
);

```

This is a fork from: https://github.com/icarus-sullivan/react-calendar-material