react-weekstrip-daypicker

0.1.7 • Public • Published

React weekstrip daypicker

A day picker in a week based calendar for react. Support both week and working week format.

Installation

npm install react-weekstrip-daypicker

Usage

import React from 'react';
import WeekStrip from 'react-weekstrip-daypicker';
 
class Component extends React.Component {

  render() {
    return <WeekStrip />;
  }
}

Properties

workingWeek

Boolean, set to true for working week (Monday - Friday).
Defalut: false

locale

String rapresenting the lang localization.
Default: en

theme

Object with the color to style the component. Default:

{
    titleColor: "#000",
    dayColor: "#222222",
    dayBackground: "transparent",
    weekdayColor: "#aaaaaa",
    daySelectedColor: "#fff",
    daySelectedBackground: "#3434ff",
}

initDay

String or Date or moment object. Set the initial view and the initial selected date. Put null to select current day.
Defult: null (current day).

onChange

Function called when the user selects a day. Day passed as param in moment format.

onWeekChange

Function called when the user changes the week. Starting day of the week passed as param in moment format.

/react-weekstrip-daypicker/

    Package Sidebar

    Install

    npm i react-weekstrip-daypicker

    Weekly Downloads

    12

    Version

    0.1.7

    License

    MIT

    Unpacked Size

    1.82 MB

    Total Files

    15

    Last publish

    Collaborators

    • foggyman