Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - DateRangePicker is not possible to customize #3091

Closed
Y-k-Y opened this issue May 27, 2024 · 2 comments · Fixed by #3258
Closed

[BUG] - DateRangePicker is not possible to customize #3091

Y-k-Y opened this issue May 27, 2024 · 2 comments · Fixed by #3258
Labels
✨ Type: Enhancement New enhancement on existing codebase

Comments

@Y-k-Y
Copy link

Y-k-Y commented May 27, 2024

NextUI Version

2.3.6

Describe the bug

DateRangePicker has calendar slot and i need to change calendar css to customize as needed(Not only container of calendar but also child components of calendar such as color of selected day...) but it seems only container of calendar can be customized.
I've also tried using classNames of calendarProps but it didn't work as well.

<DateRangePicker
  popoverProps={{
    placement: 'top',
  }}
  calendarProps={{
    classNames: {
      base: 'bg-[#5F66A0]',
      cell: 'text-white',
    },
  }}
  classNames={{
    label: ['text-white font-bold'],
    inputWrapper: [
      'rounded-md',
      'border focus-within:border-active focus-within:hover:border-default-400',
      '!transition-colors',
    ],
    innerWrapper: ['text-white'],
    segment: ['!text-white'],
    calendar: 'bg-[#5F66A0]',
    calendarContent: 'text-white',
    popoverContent: 'text-white',
  }}
/>

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Install latest nextui
  2. Try to customize calendar of DateRangePicker

Expected behavior

Calendar components and its child components should be customizable.

Screenshots or Videos

No response

Operating System Version

Linux

Browser

Chrome

Copy link

linear bot commented May 27, 2024

@daniel-aziz
Copy link

Same Issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Type: Enhancement New enhancement on existing codebase
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants