We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.4.8
When I want to apply a className to the calendar within the datePicker, the original design is damaged, and the classNames that are added do not work.
import { Card, CardBody, DatePicker } from "@nextui-org/react"; export default function Home() { return ( <Card className="mx-auto mt-4 max-w-md"> <CardBody className="text-center"> <h1 className="text-5xl">Date picker test</h1> <p className="text-xl"> <DatePicker hideTimeZone showMonthAndYearPickers calendarProps={{ content: "bg-primary", tw: "bg-primary text-white", navButtonProps: { //className: "text-red-500", // <- if uncommment this, all styles fails }, color: "secondary", classNames: { headerWrapper: ["bg-transparent"], gridWrapper: ["bg-primary"], pickerWrapper: ["bg-primary"], nextButton: "text-red-500", // <- This do not work }, buttonPickerProps: { color: "secondary", style: {}, variant: "solid", //className: "text-white", // <- if uncommment this, all styles fails }, }} /> </p> </CardBody> </Card> ); }
https://codesandbox.io/p/devbox/elated-khayyam-9nkpz3?workspaceId=809e93b8-69d3-49b4-b28e-5ff7a616bda9
Apply the classNames
No response
macOs
Chrome
The text was updated successfully, but these errors were encountered:
ENG-1448 [BUG] - datepicker calendarProps classnames don't apply
Sorry, something went wrong.
calendarProps is not propagated correctly to the calendar and has been resolved in this PR. You may use canary version or wait for the next release.
calendarProps
No branches or pull requests
NextUI Version
2.4.8
Describe the bug
When I want to apply a className to the calendar within the datePicker, the original design is damaged, and the classNames that are added do not work.
Your Example Website or App
https://codesandbox.io/p/devbox/elated-khayyam-9nkpz3?workspaceId=809e93b8-69d3-49b4-b28e-5ff7a616bda9
Steps to Reproduce the Bug or Issue
Expected behavior
Apply the classNames
Screenshots or Videos
No response
Operating System Version
macOs
Browser
Chrome
The text was updated successfully, but these errors were encountered: