diff --git a/reflex_ui/blocks/lemcal.py b/reflex_ui/blocks/lemcal.py new file mode 100644 index 0000000..70b3cc0 --- /dev/null +++ b/reflex_ui/blocks/lemcal.py @@ -0,0 +1,22 @@ +"""Lemcal calendar embed components.""" + +import reflex as rx + + +def lemcal_calendar(**props) -> rx.Component: + """Return a Lemcal booking calendar container element.""" + return rx.el.div( + class_name="lemcal-embed-booking-calendar", + data_user="usr_8tiwtJ8nEJaFj2qH9", + data_meeting_type="met_EHtPvmZoKE4SFk4kZ", + **props, + ) + + +def lemcal_script(**props) -> rx.Component: + """Return the Lemcal integrations script tag.""" + return rx.script( + src="https://cdn.lemcal.com/lemcal-integrations.min.js", + defer=True, + **props, + )