Skip to content
Discussion options

You must be logged in to vote

@2kjen any code to show? The key is actually called root:

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}
      />
    </>
  );
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gpbl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants