I’m trying to change the appearance of a Calendly inline widget in my React app but having trouble getting the styles to apply properly. I need to customize several elements like removing the drop shadow, hiding the timezone selector, and changing the background color of date elements. I’ve attempted different approaches including styled-components wrappers and direct DOM manipulation but none seem to work as expected.
import React from 'react';
import { InlineWidget } from "react-calendly";
import styled from 'styled-components';
// const StyledWrapper = styled.div`
// .calendar-shadow {
// box-shadow: none !important;
// }
// `
const BookingWidget = () => {
const schedulingUrl = "your-calendly-url-here";
return (
<div>
<InlineWidget
className="booking-calendar"
height="800px"
url={schedulingUrl}
/>
</div>
)
}
export default BookingWidget;
What’s the best way to override the default Calendly widget styles in React? Any suggestions would be helpful.