Skip to content

Commit a470314

Browse files
authored
add lemcal shared component (#42)
* add lemcal shared component * update
1 parent cc6e1d1 commit a470314

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

reflex_ui/blocks/lemcal.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
"""Lemcal calendar embed components."""
2+
3+
import reflex as rx
4+
5+
6+
def lemcal_calendar(**props) -> rx.Component:
7+
"""Return a Lemcal booking calendar container element."""
8+
return rx.el.div(
9+
class_name="lemcal-embed-booking-calendar",
10+
data_user="usr_8tiwtJ8nEJaFj2qH9",
11+
data_meeting_type="met_EHtPvmZoKE4SFk4kZ",
12+
**props,
13+
)
14+
15+
16+
def lemcal_script(**props) -> rx.Component:
17+
"""Return the Lemcal integrations script tag."""
18+
return rx.script(
19+
src="https://cdn.lemcal.com/lemcal-integrations.min.js",
20+
defer=True,
21+
**props,
22+
)

0 commit comments

Comments
 (0)