-
I can override the CSS for other classes but the changes I try to make for the rdp class don't render. |
Beta Was this translation helpful? Give feedback.
Answered by
gpbl
Feb 11, 2023
Replies: 1 comment
-
@2kjen any code to show? The key is actually called https://codesandbox.io/s/daypicker-root-classname-hqfdyq import React from "react";
import { DayPicker } from "react-day-picker";
import "react-day-picker/dist/style.css";
export default function App() {
const [selectedDay, setSelectedDay] = React.useState<Date | undefined>();
return (
<>
<style>{`.red {color: red}`}</style>
<DayPicker
classNames={{ root: "rdp red" }}
mode="single"
onSelect={setSelectedDay}
selected={selectedDay}
/>
</>
);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gpbl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@2kjen any code to show? The key is actually called
root
:https://codesandbox.io/s/daypicker-root-classname-hqfdyq