Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions reflex_ui/blocks/lemcal.py
Original file line number Diff line number Diff line change
@@ -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,
)