BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/atroui/calendly-embed

Calendly Embed

atroui/calendly-embed
FreeBlock

Theme-aware Calendly iframe with editable CONTENT and email fallback.

Install it

npx shadcn@latest add https://atroui.com/r/calendly-embed.json

Source

registry/default/blocks/calendly-embed.tsxatroui.com/r/calendly-embed.json
1"use client"
2
3import { ExternalLink } from "lucide-react"
4import { useEffect, useMemo, useState } from "react"
5
6import { getBrand } from "@/lib/brand"
7
8/**
9 * Edit CONTENT for fallback copy and default Calendly URL.
10 * Prefers CONTENT.url, then NEXT_PUBLIC_CALENDLY_URL.
11 */
12const CONTENT = {
13 url: "",
14 stamp: "Scheduler",
15 emptyTitle: "Calendly isn't connected yet",
16 emptyBody:
17 "Set CONTENT.url or NEXT_PUBLIC_CALENDLY_URL - or email us and we'll find a slot.",
18 emailCtaPrefix: "Email",
19 iframeTitleSuffix: "Book a 15-minute intro call",
20 primaryColor: "0b7bff",
21 darkBg: "0a0a0a",
22 lightBg: "ffffff",
23 darkText: "fafafa",
24 lightText: "0a0a0a",
25}
26
27export type CalendlyEmbedProps = {
28 url?: string
29}
30
31export function CalendlyEmbed({ url }: CalendlyEmbedProps) {
32 const calendlyUrl =
33 url || CONTENT.url || process.env.NEXT_PUBLIC_CALENDLY_URL || ""
34 const [mounted, setMounted] = useState(false)
35 const [isDark, setIsDark] = useState(true)
36 const brand = getBrand()
37
38 useEffect(() => {
39 setMounted(true)
40 const root = document.documentElement
41 const sync = () => setIsDark(root.classList.contains("dark"))
42 sync()
43 const obs = new MutationObserver(sync)
44 obs.observe(root, { attributes: true, attributeFilter: ["class"] })
45 return () => obs.disconnect()
46 }, [])
47
48 const src = useMemo(() => {
49 if (!calendlyUrl) return ""
50 try {
51 const u = new URL(calendlyUrl)
52 const params = new URLSearchParams({
53 hide_gdpr_banner: "1",
54 hide_landing_page_details: "1",
55 hide_event_type_details: "0",
56 primary_color: CONTENT.primaryColor,
57 background_color: isDark ? CONTENT.darkBg : CONTENT.lightBg,
58 text_color: isDark ? CONTENT.darkText : CONTENT.lightText,
59 })
60 u.search = u.search
61 ? `${u.search}&${params.toString()}`
62 : `?${params.toString()}`
63 return u.toString()
64 } catch {
65 return ""
66 }
67 }, [calendlyUrl, isDark])
68
69 if (!calendlyUrl || !src) {
70 return (
71 <div className="flex flex-col gap-4 border border-border-subtle px-4 py-10 sm:px-6 sm:py-14">
72 <p className="font-mono text-[11px] tracking-wide text-muted-foreground uppercase">
73 {CONTENT.stamp}
74 </p>
75 <h3 className="text-xl font-medium text-foreground">
76 {CONTENT.emptyTitle}
77 </h3>
78 <p className="max-w-md text-sm leading-relaxed text-muted-foreground">
79 {CONTENT.emptyBody}
80 </p>
81 <a
82// … truncated

What it pulls in

npm packages

  • lucide-react

Other registry items

  • @atroui/brand

Files it writes

  • registry/default/blocks/calendly-embed.tsx

Facts

Registry
atroui
Type
registry:block
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

atroui.com atroui/atroui on GitHub Raw registry item This item as JSON

More from atroui

All 82 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Analytics Provideranalytics-provideratrouiBlocksFree1 dep
AR Portfolioar-portfolioatrouiBlocksFree1 dep
Before / Afterbefore-after-slideratrouiBlocksFreeno deps
ChangelogchangelogatrouiBlocksFreeno deps
Command Menucommand-menuatrouiBlocksFree4 deps
Contact Formcontact-formatrouiBlocksFree2 deps
Contextual CTAcontextual-ctaatrouiBlocksFree2 deps
Count Upcount-upatrouiBlocksFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex