Skip to content

Add calendarProps prop #400

@wojtekmaj

Description

@wojtekmaj

Before you start - checklist

  • I have checked if this feature request is not already reported

Description

Currently, calendar consumes all props with a few exceptions:

const {
calendarClassName,
className: datePickerClassName, // Unused, here to exclude it from calendarProps
onChange,
value,
...calendarProps
} = this.props;

This limits the possibilities of how React-Date-Picker and React-Calendar could be customized. #399 would be an example.

Proposed solution

Allow even more powerful customizations by adding calendarProps object which, you've guessed it, would contain all props that shall be passed to React-Calendar.

Alternatives

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions