-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
@LWJerri there is a discussion about targeting buttons with tailwind, thanks for your feedback! In your case, you can set the border radius via the CSS variable: // App.css
.rdp-root.my-calendar {
--rdp-day_button-border-radius: none;
} import { DayPicker } from 'react-day-picker';
import 'react-day-picker/style.css';
import './App.css';
export default function App() {
return <DayPicker className="my-calendar" mode="range" />;
} https://stackblitz.com/edit/react-day-picker-9-2332-acy6q5?file=src%2FApp.tsx With Tailwind, you can also update the <DayPicker classNames={{
day_button: "... border-radius-none"
}}
/> |
Beta Was this translation helpful? Give feedback.
-
I will update the docs. Thanks for sharing your issues! |
Beta Was this translation helpful? Give feedback.
-
Amazing, thanks for your answer! |
Beta Was this translation helpful? Give feedback.
-
What's the answer for making the DayPicker take up the full width of the parent container? |
Beta Was this translation helpful? Give feedback.
@LWJerri there is a discussion about targeting buttons with tailwind, thanks for your feedback!
In your case, you can set the border radius via the CSS variable:
https://stackblitz.com/edit/react-day-picker-9-2332-acy6q5?file=src%2FApp.tsx
With Tailwind, you can also update the
day_button
class name: