Calendar Actions 2
Month-view commitment block for multi-day events: every session lit on one calendar, a path of days that runs into one 'add all days' .ics action, plus Google and Outlook links per day.
Use it in a prompt
Use checkout/calendar-actions-2 from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/checkout/calendar-actions-2.tsx. - Import it and pass your copy and images (Props tab):
import { CalendarActions2 } from "@/components/funneldna/checkout/calendar-actions-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/checkout/calendar-actions-2/component.tsx 854 lines
// layout: path-to-action
// Month-view commitment block for multi-day events: every session lit on one calendar, a path of days that runs into one 'add all days' .ics action, plus Google and Outlook links per day.
'use client'
import * as React from 'react'
import { CalendarDays, Clock } from 'lucide-react'
import { FX_HOST, Pattern } from '../fx/fx'
export type CalendarDay = {
/** Session title as the visitor reads it, e.g. 'Wake up your starter'. */
title: string
/** ISO 8601 with an offset or Z, e.g. '2027-03-15T19:00:00-04:00'. */
startsAt: string
/** Optional end; defaults to startsAt plus durationMinutes. */
endsAt?: string
/** One short line about what happens in this session. */
detail?: string
}
export type CalendarProvider = 'ics' | 'google' | 'outlook'
/** What was chosen: the provider and the zero-based day indexes it covers. */
export type CalendarActionDetail = { provider: CalendarProvider; days: number[] }
export type CalendarActions2State = 'default' | 'hover' | 'active' | 'focus' | 'disabled'
type CopyKey =
| 'dayLabel'
| 'ofCount'
| 'singleDateLabel'
| 'legend'
| 'gridLabel'
| 'dayButton'
| 'dayButtonSingle'
| 'hint'
| 'hintSingle'
| 'pathLabel'
| 'google'
| 'outlook'
| 'googleAria'
| 'outlookAria'
| 'googleAriaSingle'
| 'outlookAriaSingle'
| 'allLabel'
| 'singleLabel'
| 'afterAll'
| 'afterSingle'
| 'calendarTitle'
| 'calendarTitleSingle'
| 'timeRange'
| 'timeStart'
/** Templates use {day}, {count}, {title}, {date}, {time}, {month}, {weekday}, {event}, {start}, {end} and {tz}; substitutions stay plain text. */
export type CalendarActions2Copy = Record<CopyKey, string>
export type CalendarActions2Props = {
/** Every session in the run, in order. One day renders the single-day variant. */
days: CalendarDay[]
/** Event name used in every calendar entry and the .ics file name. */
eventName: string
/** IANA zone the times are announced in, e.g. 'America/New_York'. */
timezone: string
/** Overrides the generated zone label printed after every time, e.g. 'Eastern'. */
timezoneLabel?: string
/** A join link or venue, saved with each entry. */
location?: string
/** Saved in each calendar entry under the day’s detail line. */
description?: string
durationMinutes?: number
/** Reminder added to every entry in the .ics file; 0 adds none. */
reminderMinutes?: number
locale?: string
/** 0 = Sunday first, 1 = Monday first. */
weekStartsOn?: 0 | 1
/** Zero-based day shown in the preview first. */
initialDay?: number
heading?: React.ReactNode
salutation?: React.ReactNode
/** Short letter paragraphs above the calendar. */
letter?: React.ReactNode[]
signOff?: React.ReactNode
/** Signed name: the accessible label of the signature image, or shown in the display face when no image is given. */
signature?: string
/** Handwritten signature on a transparent background (signature slot). It is used as a mask and inked in --signature-ink, so it follows every theme. */
signatureImage?: string
signerName?: string
signerRole?: string
presenterImage?: string
presenterAlt?: string
/** Outcome photo beside the letter (scene slot). */
sceneImage?: string
sceneAlt?: string
sceneCaption?: React.ReactNode
copy?: Partial<CalendarActions2Copy>
disabled?: boolean
/** Studio preview: force button hover/press, a focused day, or disabled. */
state?: CalendarActions2State
/** Called on every calendar action; call event.preventDefault() to keep the visitor on the page. */
onAction?: (action: CalendarActionDetail, event: React.MouseEvent<HTMLAnchorElement>) => void
className?: string
}
export function CalendarActions2(props: CalendarActions2Props) {
const {
days: dayInput,
eventName,
timezone,
timezoneLabel,
location,
description,
durationMinutes = 60,
reminderMinutes = 30,
locale = 'en-US',
weekStartsOn = 0,
initialDay = 0,
heading = DEFAULT_HEADING,
salutation = 'Dear friend,',
letter = DEFAULT_LETTER,
signOff = 'See you there,',
signature,
signatureImage,
signerName,
signerRole,
presenterImage,
presenterAlt = '',
sceneImage,
sceneAlt = '',
sceneCaption,
copy: copyOverrides,
disabled = false,
state = 'default',
onAction,
className,
} = props
const copy = { ...CALENDAR_COPY, ...pickDefined(copyOverrides) } as CalendarActions2Copy
const uid = React.useId().replace(/:/g, '')
const headingId = `cfca2-heading-${uid}`
const readoutId = `cfca2-readout-${uid}`
const days = buildDays(dayInput, timezone, timezoneLabel, locale, durationMinutes, copy)
const count = days.length
const single = count === 1
const forced = state === 'hover' ? 2 : state === 'focus' ? 1 : null
const [picked, setPicked] = React.useState<number>(forced ?? initialDay)
React.useEffect(() => {
if (forced !== null) setPicked(forced)
}, [forced])
const dayRefs = React.useRef<Array<HTMLButtonElement | null>>([])
if (!count) return null
const active = Math.min(Math.max(picked, 0), count - 1)
const current = days[active]
const isDisabled = disabled || state === 'disabled'
const months = buildMonths(days, weekStartsOn, locale)
const weekdayFormat = new Intl.DateTimeFormat(locale, { weekday: 'short', timeZone: 'UTC' })
const weekdays = Array.from({ length: 7 }, (_, i) =>
weekdayFormat.format(new Date(Date.UTC(2023, 0, 1 + ((weekStartsOn + i) % 7)))),
)
const calendarTitle = (d: Day) =>
single
? formatCopy(copy.calendarTitleSingle, { event: eventName, title: d.title })
: formatCopy(copy.calendarTitle, { event: eventName, day: d.index + 1, title: d.title })
const notes = (d: Day) => [d.detail, description].filter(Boolean).join(NL + NL)
const slug = slugify(eventName)
const ics = buildIcs(
days.map((d) => ({ day: d, title: calendarTitle(d), notes: notes(d) })),
{ location, reminderMinutes, slug, calendarName: eventName },
)
const icsHref = `data:text/calendar;charset=utf-8,${encodeURIComponent(ics)}`
const fileName = `${slug || 'calendar'}.ics`
const allDays = days.map((d) => d.index)
const fire = (detail: CalendarActionDetail) => (event: React.MouseEvent<HTMLAnchorElement>) => {
if (isDisabled) {
event.preventDefault()
return
}
onAction?.(detail, event)
}
const onDayKey = (i: number) => (event: React.KeyboardEvent<HTMLButtonElement>) => {
const moves: Record<string, number> = {
ArrowRight: i + 1,
ArrowDown: i + 1,
ArrowLeft: i - 1,
ArrowUp: i - 1,
Home: 0,
End: count - 1,
}
if (!(event.key in moves)) return
event.preventDefault()
const next = Math.min(Math.max(moves[event.key], 0), count - 1)
setPicked(next)
dayRefs.current[next]?.focus()
}
const links = (d: Day) => {
const title = calendarTitle(d)
const vars = { day: d.index + 1, title: d.title }
return (
<>
<ProviderLink
mark={<GoogleMark />}
text={copy.google}
label={formatCopy(single ? copy.googleAriaSingle : copy.googleAria, vars)}
href={googleHref(d, title, timezone, location, notes(d))}
disabled={isDisabled}
onClick={fire({ provider: 'google', days: [d.index] })}
/>
<ProviderLink
mark={<OutlookMark />}
text={copy.outlook}
label={formatCopy(single ? copy.outlookAriaSingle : copy.outlookAria, vars)}
href={outlookHref(d, title, location, notes(d))}
disabled={isDisabled}
onClick={fire({ provider: 'outlook', days: [d.index] })}
/>
</>
)
}
return (
<section
className={cx('cf-calendar-actions-2', className)}
style={FX_HOST}
data-state={state}
data-flow={!single && count <= 5 ? 'row' : 'column'}
data-single={single ? '' : undefined}
aria-labelledby={headingId}
>
<style>{CSS}</style>
<Pattern name='grid' fade='corner' />
<div className='cfca2-wrap'>
<div className='cfca2-head' data-photo={sceneImage ? '' : undefined}>
<div className='cfca2-copy'>
<h2 id={headingId} className='cfca2-h2 cfca2-rise'>
{heading}
</h2>
<div className='cfca2-letter'>
{salutation ? (
<p className='cfca2-salute cfca2-rise' style={rise(1)}>
{salutation}
</p>
) : null}
{letter.map((paragraph, i) => (
<p key={i} className='cfca2-rise' style={rise(i + 2)}>
{paragraph}
</p>
))}
{signOff ? (
<p className='cfca2-signoff cfca2-rise' style={rise(letter.length + 2)}>
{signOff}
</p>
) : null}
</div>
{signature || signatureImage || signerName || presenterImage ? (
<div className='cfca2-sign'>
{presenterImage ? (
<img className='cfca2-avatar' src={presenterImage} alt={presenterAlt} width={64} height={64} loading='lazy' />
) : null}
<div>
{signatureImage ? (
<span
className='cfca2-sigmark'
{...(signature || signerName
? { role: 'img', 'aria-label': signature || signerName }
: { 'aria-hidden': true })}
style={
{
WebkitMaskImage: `url("${signatureImage}")`,
maskImage: `url("${signatureImage}")`,
} as React.CSSProperties
}
/>
) : signature ? (
<p className='cfca2-signature'>{signature}</p>
) : null}
{signerName ? (
<p className='cfca2-signer'>
<strong>{signerName}</strong>
{signerRole ? <span>{signerRole}</span> : null}
</p>
) : null}
</div>
</div>
) : null}
</div>
{sceneImage ? (
<figure className='cfca2-photo cfca2-rise' style={rise(2)}>
<img src={sceneImage} alt={sceneAlt} width={880} height={1100} loading='lazy' />
{sceneCaption ? <figcaption>{sceneCaption}</figcaption> : null}
</figure>
) : null}
</div>
<div className='cfca2-stage cfca2-rise' style={rise(3)}>
<div className='cfca2-cal'>
{months.map((month, mi) => (
<div className='cfca2-monthblock' key={month.key}>
<div className='cfca2-month-head'>
<h3 className='cfca2-month'>{month.label}</h3>
{mi === 0 ? (
<span className='cfca2-legend'>
<i aria-hidden='true' />
{copy.legend}
</span>
) : null}
</div>
<div className='cfca2-dow' aria-hidden='true'>
{weekdays.map((w, wi) => (
<span key={wi}>{w}</span>
))}
</div>
<div className='cfca2-days' role='group' aria-label={formatCopy(copy.gridLabel, { month: month.label })}>
{month.cells.map((cell) => {
if (cell.event === undefined) {
return (
<span key={cell.key} className='cfca2-cell' aria-hidden='true'>
{cell.dom ?? ''}
</span>
)
}
const d = days[cell.event]
const isActive = d.index === active
return (
<button
key={cell.key}
ref={(el) => {
dayRefs.current[d.index] = el
}}
type='button'
className={cx('cfca2-cell', 'is-event', cell.runStart && 'run-start', cell.runEnd && 'run-end')}
aria-pressed={isActive}
aria-controls={readoutId}
aria-label={
single
? formatCopy(copy.dayButtonSingle, { date: d.dateLong, title: d.title, time: d.timeRange })
: formatCopy(copy.dayButton, { date: d.dateLong, day: d.index + 1, title: d.title, time: d.timeRange })
}
tabIndex={isActive ? 0 : -1}
onMouseEnter={() => setPicked(d.index)}
onFocus={() => setPicked(d.index)}
onClick={() => setPicked(d.index)}
onKeyDown={onDayKey(d.index)}
>
<span className='cfca2-puck' aria-hidden='true'>
{cell.dom}
</span>
</button>
)
})}
</div>
</div>
))}
</div>
<div className='cfca2-readout' id={readoutId} aria-live='polite'>
<div className='cfca2-swap' key={active}>
<p className='cfca2-ro-top'>
<span className='cfca2-ro-day'>
{single ? String(current.dom) : formatCopy(copy.dayLabel, { day: active + 1 })}
</span>
<span className='cfca2-ro-of'>
{single
? formatCopy(copy.singleDateLabel, { weekday: current.weekday, month: current.month })
: formatCopy(copy.ofCount, { count })}
</span>
</p>
<h3 className='cfca2-ro-title'>{current.title}</h3>
{current.detail ? <p className='cfca2-ro-detail'>{current.detail}</p> : null}
<ul className='cfca2-ro-meta'>
<li>
<CalendarDays size={18} strokeWidth={2.5} aria-hidden='true' />
<span>{current.dateLong}</span>
</li>
<li>
<Clock size={18} strokeWidth={2.5} aria-hidden='true' />
<span>{current.timeRange}</span>
</li>
</ul>
</div>
<p className='cfca2-ro-hint'>{single ? copy.hintSingle : copy.hint}</p>
</div>
</div>
<div className='cfca2-run'>
{single ? null : (
<ol className='cfca2-path' aria-label={copy.pathLabel} style={{ '--n': count } as React.CSSProperties}>
{days.map((d) => (
<li
key={d.index}
className='cfca2-stop cfca2-rise'
style={rise(d.index)}
data-active={d.index === active ? '' : undefined}
onMouseEnter={() => setPicked(d.index)}
onFocus={() => setPicked(d.index)}
>
<span className='cfca2-node' aria-hidden='true' />
<div className='cfca2-stop-body'>
<p className='cfca2-stop-day'>{formatCopy(copy.dayLabel, { day: d.index + 1 })}</p>
<p className='cfca2-stop-title'>{d.title}</p>
<p className='cfca2-stop-when'>
<time dateTime={d.start.toISOString()}>{d.dateShort}</time> · {d.timeStart}
</p>
<div className='cfca2-links'>{links(d)}</div>
</div>
</li>
))}
</ol>
)}
<div className='cfca2-action'>
<a
className='cfca2-cta'
href={isDisabled ? undefined : icsHref}
download={isDisabled ? undefined : fileName}
role={isDisabled ? 'link' : undefined}
aria-disabled={isDisabled ? true : undefined}
onClick={fire({ provider: 'ics', days: allDays })}
>
{single ? copy.singleLabel : formatCopy(copy.allLabel, { count })}
</a>
<p className='cfca2-after'>{single ? copy.afterSingle : formatCopy(copy.afterAll, { count })}</p>
{single ? <div className='cfca2-links cfca2-links-single'>{links(current)}</div> : null}
</div>
</div>
</div>
</section>
)
}
export default CalendarActions2
type Day = {
index: number
title: string
detail?: string
start: Date
end: Date
y: number
m: number
dom: number
dateLong: string
dateShort: string
weekday: string
month: string
timeStart: string
timeRange: string
}
type Cell = { key: string; dom?: number; event?: number; runStart?: boolean; runEnd?: boolean }
const BS = String.fromCharCode(92)
const NL = String.fromCharCode(10)
const CR = String.fromCharCode(13)
const CRLF = CR + NL
const DEFAULT_HEADING = (
<>
Put <span className='cfca2-mark'>every session</span> on your calendar
</>
)
const DEFAULT_LETTER: React.ReactNode[] = [
'Day one is easy to remember. Day three is the one that slips, and it’s usually the day that matters most.',
'So save the whole run now. One click puts every session on your calendar, with the time set in the right zone.',
]
const CALENDAR_COPY: CalendarActions2Copy = {
dayLabel: 'Day {day}',
ofCount: 'of {count}',
singleDateLabel: '{weekday}, {month}',
legend: 'Live session',
gridLabel: '{month}. Highlighted days are live sessions.',
dayButton: '{date}, Day {day}: {title}, {time}',
dayButtonSingle: '{date}: {title}, {time}',
hint: 'Hover or tap a highlighted day to preview that session.',
hintSingle: 'Your session is highlighted on the calendar.',
pathLabel: 'Every session, in order',
google: 'Google',
outlook: 'Outlook',
googleAria: 'Add Day {day}, {title}, to Google Calendar',
outlookAria: 'Add Day {day}, {title}, to Outlook',
googleAriaSingle: 'Add {title} to Google Calendar',
outlookAriaSingle: 'Add {title} to Outlook',
allLabel: 'Add all {count} days to my calendar',
singleLabel: 'Add it to my calendar',
afterAll: 'One file with all {count} sessions for Apple, Google or Outlook.',
afterSingle: 'Or add it straight to Google or Outlook:',
calendarTitle: '{event} · Day {day}: {title}',
calendarTitleSingle: '{event}: {title}',
timeRange: '{start} – {end} {tz}',
timeStart: '{start} {tz}',
}
function ProviderLink({
mark,
text,
label,
href,
disabled,
onClick,
}: {
mark: React.ReactNode
text: string
label: string
href: string
disabled: boolean
onClick: (event: React.MouseEvent<HTMLAnchorElement>) => void
}) {
return (
<a
className='cfca2-prov'
href={disabled ? undefined : href}
target='_blank'
rel='noopener noreferrer'
aria-label={label}
role={disabled ? 'link' : undefined}
aria-disabled={disabled ? true : undefined}
onClick={onClick}
>
{mark}
<span className='cfca2-prov-text'>{text}</span>
</a>
)
}
function GoogleMark() {
return (
<svg viewBox='0 0 48 48' aria-hidden='true' focusable='false' data-official-mark='Google Calendar'>
<path fill='#4285F4' d='M45.12 24.5c0-1.56-.14-3.06-.4-4.5H24v8.51h11.84c-.51 2.75-2.06 5.08-4.39 6.64v5.52h7.11c4.16-3.83 6.56-9.47 6.56-16.17z' />
<path fill='#34A853' d='M24 46c5.94 0 10.92-1.97 14.56-5.33l-7.11-5.52c-1.97 1.32-4.49 2.1-7.45 2.1-5.73 0-10.58-3.87-12.31-9.07H4.34v5.7C7.96 41.07 15.4 46 24 46z' />
<path fill='#FBBC05' d='M11.69 28.18C11.25 26.86 11 25.45 11 24s.25-2.86.69-4.18v-5.7H4.34C2.85 17.09 2 20.45 2 24c0 3.55.85 6.91 2.34 9.88l7.35-5.7z' />
<path fill='#EA4335' d='M24 10.75c3.23 0 6.13 1.11 8.41 3.29l6.31-6.31C34.91 4.18 29.93 2 24 2 15.4 2 7.96 6.93 4.34 14.12l7.35 5.7c1.73-5.2 6.58-9.07 12.31-9.07z' />
</svg>
)
}
function OutlookMark() {
return (
<svg viewBox='0 0 24 24' aria-hidden='true' focusable='false' data-official-mark='Microsoft Outlook'>
<rect x='8' y='4' width='14' height='16' rx='2' fill='#28A8EA' />
<path d='M8 9h14v9a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2z' fill='#0078D4' />
<rect x='2' y='6.5' width='11' height='11' rx='1.6' fill='#0364B8' />
<ellipse cx='7.5' cy='12' rx='2.6' ry='3.1' fill='none' stroke='#FFFFFF' strokeWidth='1.7' />
</svg>
)
}
function buildDays(
input: CalendarDay[],
timezone: string,
timezoneLabel: string | undefined,
locale: string,
durationMinutes: number,
copy: CalendarActions2Copy,
): Day[] {
const out: Day[] = []
for (const item of input) {
const start = new Date(item.startsAt)
if (Number.isNaN(start.getTime())) continue
const parsedEnd = item.endsAt ? new Date(item.endsAt) : null
const end =
parsedEnd && !Number.isNaN(parsedEnd.getTime()) && parsedEnd.getTime() > start.getTime()
? parsedEnd
: new Date(start.getTime() + durationMinutes * 60000)
const fmt = (opts: Intl.DateTimeFormatOptions, date: Date = start) =>
new Intl.DateTimeFormat(locale, { timeZone: timezone, ...opts }).format(date)
const parts = new Intl.DateTimeFormat('en-US', { timeZone: timezone, year: 'numeric', month: 'numeric', day: 'numeric' }).formatToParts(start)
const part = (type: string) => Number(parts.find((p) => p.type === type)?.value ?? 0)
const tz =
timezoneLabel ??
new Intl.DateTimeFormat(locale, { timeZone: timezone, timeZoneName: 'short' })
.formatToParts(start)
.find((p) => p.type === 'timeZoneName')?.value ??
''
const startTime = fmt({ hour: 'numeric', minute: '2-digit' })
const endTime = fmt({ hour: 'numeric', minute: '2-digit' }, end)
out.push({
index: out.length,
title: item.title,
detail: item.detail,
start,
end,
y: part('year'),
m: part('month'),
dom: part('day'),
dateLong: fmt({ weekday: 'long', month: 'long', day: 'numeric', year: 'numeric' }),
dateShort: fmt({ weekday: 'short', month: 'short', day: 'numeric' }),
weekday: fmt({ weekday: 'long' }),
month: fmt({ month: 'long' }),
timeStart: formatCopy(copy.timeStart, { start: startTime, tz }).trim(),
timeRange: formatCopy(copy.timeRange, { start: startTime, end: endTime, tz }).trim(),
})
}
return out
}
function buildMonths(days: Day[], weekStartsOn: number, locale: string) {
const order: string[] = []
const byMonth = new Map<string, Map<number, number>>()
for (const d of days) {
const key = `${d.y}-${d.m}`
if (!byMonth.has(key)) {
order.push(key)
byMonth.set(key, new Map())
}
const events = byMonth.get(key)
if (events && !events.has(d.dom)) events.set(d.dom, d.index)
}
const labelFormat = new Intl.DateTimeFormat(locale, { month: 'long', year: 'numeric', timeZone: 'UTC' })
return order.map((key) => {
const [y, m] = key.split('-').map(Number)
const events = byMonth.get(key) ?? new Map<number, number>()
const firstWeekday = new Date(Date.UTC(y, m - 1, 1)).getUTCDay()
const offset = (firstWeekday - weekStartsOn + 7) % 7
const total = new Date(Date.UTC(y, m, 0)).getUTCDate()
const cells: Cell[] = []
for (let i = 0; i < offset; i++) cells.push({ key: `b${i}` })
for (let dom = 1; dom <= total; dom++) {
const col = (offset + dom - 1) % 7
const event = events.get(dom)
cells.push({
key: `d${dom}`,
dom,
event,
runStart: event !== undefined && (col === 0 || !events.has(dom - 1)),
runEnd: event !== undefined && (col === 6 || !events.has(dom + 1)),
})
}
while (cells.length % 7) cells.push({ key: `a${cells.length}` })
return { key, label: labelFormat.format(new Date(Date.UTC(y, m - 1, 1))), cells }
})
}
function googleHref(d: Day, title: string, timezone: string, location?: string, notes?: string) {
return (
'https://calendar.google.com/calendar/render?action=TEMPLATE' +
`&text=${encodeURIComponent(title)}` +
`&dates=${toBasicUtc(d.start)}/${toBasicUtc(d.end)}` +
`&ctz=${encodeURIComponent(timezone)}` +
(location ? `&location=${encodeURIComponent(location)}` : '') +
(notes ? `&details=${encodeURIComponent(notes)}` : '')
)
}
function outlookHref(d: Day, title: string, location?: string, notes?: string) {
return (
'https://outlook.live.com/calendar/0/action/compose?rru=addevent' +
`&subject=${encodeURIComponent(title)}` +
`&startdt=${encodeURIComponent(d.start.toISOString())}` +
`&enddt=${encodeURIComponent(d.end.toISOString())}` +
(location ? `&location=${encodeURIComponent(location)}` : '') +
(notes ? `&body=${encodeURIComponent(notes)}` : '')
)
}
function buildIcs(
entries: Array<{ day: Day; title: string; notes: string }>,
opts: { location?: string; reminderMinutes: number; slug: string; calendarName: string },
) {
const stamp = toBasicUtc(entries[0].day.start)
const lines = [
'BEGIN:VCALENDAR',
'VERSION:2.0',
'PRODID:-//funnel//calendar-actions-2//EN',
'CALSCALE:GREGORIAN',
'METHOD:PUBLISH',
`X-WR-CALNAME:${escapeIcs(opts.calendarName)}`,
]
for (const { day, title, notes } of entries) {
lines.push(
'BEGIN:VEVENT',
`UID:${toBasicUtc(day.start)}-${day.index + 1}-${opts.slug || 'event'}@calendar-actions-2`,
`DTSTAMP:${stamp}`,
`DTSTART:${toBasicUtc(day.start)}`,
`DTEND:${toBasicUtc(day.end)}`,
`SUMMARY:${escapeIcs(title)}`,
)
if (opts.location) lines.push(`LOCATION:${escapeIcs(opts.location)}`)
if (notes) lines.push(`DESCRIPTION:${escapeIcs(notes)}`)
if (opts.reminderMinutes > 0) {
lines.push('BEGIN:VALARM', 'ACTION:DISPLAY', `DESCRIPTION:${escapeIcs(title)}`, `TRIGGER:-PT${Math.round(opts.reminderMinutes)}M`, 'END:VALARM')
}
lines.push('END:VEVENT')
}
lines.push('END:VCALENDAR')
return lines.join(CRLF)
}
function escapeIcs(value: string) {
return value
.split(BS).join(BS + BS)
.split(';').join(BS + ';')
.split(',').join(BS + ',')
.split(CR).join('')
.split(NL).join(BS + 'n')
}
function toBasicUtc(date: Date) {
return date.toISOString().slice(0, 19).split('-').join('').split(':').join('') + 'Z'
}
function slugify(value: string) {
return value.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '')
}
function formatCopy(template: string, vars: Record<string, string | number>) {
return template.replace(/[{]([a-zA-Z]+)[}]/g, (match, key: string) => (key in vars ? String(vars[key]) : match))
}
function pickDefined<T extends object>(value?: Partial<T>): Partial<T> {
return Object.fromEntries(Object.entries(value ?? {}).filter(([, v]) => v !== undefined)) as Partial<T>
}
function rise(i: number) {
return { '--i': i } as React.CSSProperties
}
function cx(...parts: Array<string | false | null | undefined>) {
return parts.filter(Boolean).join(' ')
}
const CSS = `
.cf-calendar-actions-2{--signature-font:var(--signature-face,var(--font-display));position:relative;isolation:isolate;overflow:hidden;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
.cf-calendar-actions-2 *,.cf-calendar-actions-2 *::before,.cf-calendar-actions-2 *::after{box-sizing:border-box}
.cfca2-wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cfca2-head{display:grid;gap:clamp(32px,5vw,72px);align-items:start}
@media (min-width:900px){.cfca2-head[data-photo]{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)}}
.cfca2-h2{margin:0 0 24px;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance;color:var(--ink)}
.cfca2-mark{background-image:linear-gradient(transparent 40%,oklch(from var(--marker,#fae37c) l c h / .72) 40%,oklch(from var(--marker,#fae37c) l c h / .72) 92%,transparent 92%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .14em;margin:0 -.06em;border-radius:.1em .3em .14em .26em}
.cfca2-letter p{margin:0 0 14px;max-width:62ch;font-size:clamp(1.0625rem,1.3vw,1.1875rem);line-height:1.55;text-wrap:pretty;color:var(--ink)}
.cfca2-letter .cfca2-salute{font-weight:700}
.cfca2-letter .cfca2-signoff{margin:22px 0 0}
.cfca2-sign{display:flex;align-items:center;gap:16px;margin-top:12px}
.cfca2-avatar{display:block;flex:0 0 64px;width:64px;height:64px;border-radius:12px;object-fit:cover;object-position:50% 25%}
.cfca2-signature{margin:0 0 12px;font-family:var(--signature-font);font-size:1.75rem;font-weight:var(--display-weight,800);letter-spacing:-.01em;line-height:1.1;color:var(--signature-ink,var(--ink))}
.cfca2-sigmark{display:block;width:180px;max-width:100%;height:72px;margin:0 0 12px;background:var(--signature-ink,var(--ink));-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:cover;mask-size:cover;-webkit-mask-position:center;mask-position:center}
.cfca2-signer{margin:0;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted)}
.cfca2-signer strong{display:block;font-size:1rem;font-weight:700;color:var(--ink)}
.cfca2-photo{margin:0}
.cfca2-photo img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:50% 55%;border-radius:12px}
@media (min-width:900px){.cfca2-photo img{aspect-ratio:4/5}}
.cfca2-photo figcaption{margin-top:12px;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cfca2-stage{margin-top:clamp(40px,5vw,64px);display:grid;gap:20px;padding:clamp(12px,3vw,32px);background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .22),0 12px 24px -8px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .32)))}
@media (min-width:860px){.cfca2-stage{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:32px}}
.cfca2-monthblock + .cfca2-monthblock{margin-top:24px}
.cfca2-month-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:0 0 12px;padding:8px 4px 0}
.cfca2-month{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:-.01em;font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;color:var(--ink)}
.cfca2-legend{display:inline-flex;align-items:center;gap:8px;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted)}
.cfca2-legend i{display:block;width:24px;height:14px;border-radius:999px;background:var(--accent-fill,var(--accent))}
.cfca2-dow,.cfca2-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.cfca2-dow span{padding:4px 0 10px;text-align:center;font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.cfca2-days{row-gap:6px}
.cfca2-cell{position:relative;display:flex;align-items:center;justify-content:center;height:clamp(44px,4.2vw,54px);font-size:1.0625rem;font-variant-numeric:tabular-nums;color:var(--muted)}
button.cfca2-cell{appearance:none;width:100%;margin:0;padding:0;border:0;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.cfca2-cell.is-event{background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card));font-family:var(--font-display);font-weight:800;font-size:1.125rem}
.cfca2-cell.is-event.run-start{border-start-start-radius:999px;border-end-start-radius:999px}
.cfca2-cell.is-event.run-end{border-start-end-radius:999px;border-end-end-radius:999px}
.cfca2-puck{display:grid;place-items:center;height:calc(100% - 12px);aspect-ratio:1;border-radius:999px;line-height:1}
.cfca2-cell.is-event[aria-pressed='true'] .cfca2-puck{background:var(--card);color:var(--ink);box-shadow:var(--shadow-sm,0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .25))}
.cfca2-cell.is-event:focus-visible{outline:none;z-index:1}
.cfca2-cell.is-event:focus-visible .cfca2-puck,.cf-calendar-actions-2[data-state='focus'] .cfca2-cell.is-event[aria-pressed='true'] .cfca2-puck{outline:3px solid var(--accent-fill-ink,var(--card));outline-offset:3px}
.cfca2-readout{display:flex;flex-direction:column;padding:clamp(20px,2.6vw,32px);border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card));color:var(--ink)}
.cfca2-ro-top{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0}
.cfca2-ro-day{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--accent)}
.cfca2-ro-of{font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted)}
.cfca2-ro-title{margin:16px 0 8px;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-.01em;text-wrap:balance;color:var(--ink)}
.cfca2-ro-detail{margin:0 0 20px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
.cfca2-ro-meta{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.cfca2-ro-meta li{display:flex;align-items:flex-start;gap:10px;font-size:1.0625rem;font-weight:600;line-height:1.4}
.cfca2-ro-meta svg{flex:0 0 auto;margin-top:2px;color:var(--accent)}
.cfca2-ro-hint{margin:auto 0 0;padding-top:20px;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cfca2-run{display:grid;gap:24px;margin-top:clamp(40px,5vw,56px)}
.cfca2-path{position:relative;display:grid;margin:0;padding:0;list-style:none}
.cfca2-path::before{content:'';position:absolute;left:11.5px;top:26px;bottom:-24px;width:3px;border-radius:3px;background:var(--accent-fill,var(--accent));transform-origin:top center}
.cfca2-stop{position:relative;padding:0 0 12px 34px}
.cfca2-node{position:absolute;left:2px;top:13px;z-index:1;width:22px;height:22px;border-radius:999px;background:var(--accent-fill,var(--accent));border:4px solid var(--surface)}
.cfca2-stop[data-active] .cfca2-node{background:var(--surface);border:6px solid var(--accent-fill,var(--accent));transform:scale(1.15)}
.cfca2-stop-body{padding:12px 16px;border-radius:12px}
.cfca2-stop[data-active] .cfca2-stop-body{background:color-mix(in oklch,var(--accent) 10%,var(--surface))}
.cfca2-stop-day{margin:0 0 4px;font-family:var(--font-display);font-weight:800;font-size:1.1875rem;line-height:1.2;color:var(--accent)}
.cfca2-stop-title{margin:0 0 4px;font-size:1.0625rem;font-weight:700;line-height:1.3;color:var(--ink);text-wrap:pretty}
.cfca2-stop-when{margin:0 0 12px;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted)}
.cfca2-stop[data-active] .cfca2-stop-when{color:var(--ink)}
.cfca2-links{display:flex;flex-wrap:wrap;gap:8px}
.cfca2-links-single{justify-content:center}
@media (max-width:719px){.cfca2-stop-body .cfca2-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:340px}.cfca2-stop-body .cfca2-prov{padding:0 10px}}
.cfca2-prov{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:0 14px;border:1px solid var(--button-2-border,transparent);border-radius:var(--button-radius,var(--radius,12px));background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));box-shadow:var(--button-2-shadow,var(--shadow-sm));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:.9375rem;line-height:1;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.cfca2-prov svg{flex:0 0 20px;width:20px;height:20px}
.cfca2-prov:not([aria-disabled='true']):hover{background:oklch(from var(--button-2-bg,var(--secondary)) calc(l - .04) c h)}
.cfca2-prov:not([aria-disabled='true']):active{transform:translateY(1px);box-shadow:none}
.cfca2-prov:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:2px}
.cfca2-prov[aria-disabled='true']{opacity:.55;cursor:not-allowed}
.cfca2-action{display:flex;flex-direction:column;gap:12px;width:100%;max-width:520px}
.cf-calendar-actions-2[data-single] .cfca2-action{margin-inline:auto}
.cfca2-cta{--cfca2-b:var(--button-bg,var(--cta));--cfca2-b2:var(--button-bg-2,var(--cta-2));--cfca2-sh:var(--shadow,oklch(.22 .03 260));display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:72px;padding:12px 24px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--cfca2-b) calc(l + .04) c h),oklch(from var(--cfca2-b2) calc(l - .02) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.4vw,1.25rem);line-height:1.15;text-align:center;text-wrap:balance;text-decoration:none;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--cfca2-b) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--cfca2-b) calc(l - .16) c h),0 1px 2px oklch(from var(--cfca2-sh) l c h / .3),0 8px 16px -6px oklch(from var(--cfca2-sh) l c h / .42));cursor:pointer;-webkit-tap-highlight-color:transparent}
.cfca2-cta:not([aria-disabled='true']):hover,.cf-calendar-actions-2[data-state='hover'] .cfca2-cta:not([aria-disabled='true']){background:linear-gradient(oklch(from var(--cfca2-b) calc(l - .01) c h),oklch(from var(--cfca2-b2) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--cfca2-b) calc(l + .1) c h / .6),inset 0 -3px 0 oklch(from var(--cfca2-b) calc(l - .2) c h),0 1px 2px oklch(from var(--cfca2-sh) l c h / .34),0 12px 20px -8px oklch(from var(--cfca2-sh) l c h / .5))}
.cfca2-cta:not([aria-disabled='true']):active,.cf-calendar-actions-2[data-state='active'] .cfca2-cta:not([aria-disabled='true']){transform:translateY(1px);background:linear-gradient(oklch(from var(--cfca2-b) calc(l - .05) c h),oklch(from var(--cfca2-b2) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--cfca2-b) calc(l - .24) c h / .55),inset 0 -2px 0 oklch(from var(--cfca2-b) calc(l - .16) c h),0 1px 2px oklch(from var(--cfca2-sh) l c h / .3)}
.cfca2-cta:focus-visible,.cf-calendar-actions-2[data-state='focus'] .cfca2-cta{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cfca2-cta[aria-disabled='true']{background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;box-shadow:none;cursor:not-allowed}
.cfca2-after{margin:0;text-align:center;font-size:.9375rem;font-weight:500;line-height:1.4;color:var(--muted);text-wrap:pretty}
@media (max-width:520px){.cfca2-cta{padding:12px 20px}}
@media (min-width:720px){
.cfca2-stop-body{display:grid;grid-template-columns:6rem minmax(0,1fr) auto;column-gap:16px;align-items:center}
.cfca2-stop-day{grid-row:1 / span 2;margin:0}
.cfca2-stop-title{grid-column:2;margin:0}
.cfca2-stop-when{grid-column:2;margin:2px 0 0}
.cfca2-stop-body .cfca2-links{grid-column:3;grid-row:1 / span 2}
.cfca2-node{top:calc(50% - 17px)}
}
@media (min-width:1180px){
.cf-calendar-actions-2[data-flow='row'] .cfca2-run{grid-template-columns:minmax(0,1fr) 380px;column-gap:40px;align-items:start}
.cf-calendar-actions-2[data-flow='row'] .cfca2-path{grid-template-columns:repeat(var(--n,5),minmax(0,1fr));column-gap:8px}
.cf-calendar-actions-2[data-flow='row'] .cfca2-path::before{left:23px;right:-40px;top:34.5px;bottom:auto;width:auto;height:3px;transform-origin:left center}
.cf-calendar-actions-2[data-flow='row'] .cfca2-stop{padding:60px 0 0}
.cf-calendar-actions-2[data-flow='row'] .cfca2-node{left:12px;top:25px}
.cf-calendar-actions-2[data-flow='row'] .cfca2-stop-body{display:block;padding:12px}
.cf-calendar-actions-2[data-flow='row'] .cfca2-stop-day{margin:0 0 4px}
.cf-calendar-actions-2[data-flow='row'] .cfca2-stop-title{margin:0 0 4px}
.cf-calendar-actions-2[data-flow='row'] .cfca2-stop-when{margin:0 0 12px}
.cf-calendar-actions-2[data-flow='row'] .cfca2-prov{width:44px;padding:0}
.cf-calendar-actions-2[data-flow='row'] .cfca2-prov-text{display:none}
.cf-calendar-actions-2[data-flow='row'] .cfca2-action{max-width:none}
}
@media (prefers-reduced-motion:no-preference){
.cfca2-rise{animation:cfca2-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:min(calc(var(--i,0) * .07s),.28s)}
.cfca2-path::before{animation:cfca2-draw-y .9s cubic-bezier(.2,.7,.2,1) .2s both}
.cfca2-swap{animation:cfca2-swap .28s cubic-bezier(.2,.7,.2,1) both}
.cfca2-puck,.cfca2-node,.cfca2-stop-body,.cfca2-prov,.cfca2-cta{transition:background .16s ease,box-shadow .16s ease,transform .16s ease,color .16s ease,border-color .16s ease}
}
@media (prefers-reduced-motion:no-preference) and (min-width:1180px){
.cf-calendar-actions-2[data-flow='row'] .cfca2-path::before{animation-name:cfca2-draw-x}
}
@keyframes cfca2-rise{from{opacity:.82;transform:translateY(8px)}}
@keyframes cfca2-swap{from{opacity:.6;transform:translateY(4px)}}
@keyframes cfca2-draw-y{from{transform:scaleY(0)}}
@keyframes cfca2-draw-x{from{transform:scaleX(0)}}
`
pieces/checkout/calendar-actions-2/specimen.tsx 117 lines
import __studioImageb3d6edc8 from "../assets/f5d721b031a8c876.webp";
import __studioImagef758d364 from "../assets/43c8f3252da6bdcb.webp";
import __studioImagedc5bc70e from "../assets/817bbbc565e3051b.webp";
import * as React from 'react'
import { CalendarActions2, type CalendarDay } from '../calendar-actions-2'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'focus', 'disabled', 'single']
const CHALLENGE_DAYS: CalendarDay[] = [
{
title: 'Wake up your starter',
detail: 'Feed it, read the bubbles and pass the float test.',
startsAt: '2027-03-15T19:00:00-04:00',
endsAt: '2027-03-15T20:00:00-04:00',
},
{
title: 'Mix and stretch your dough',
detail: 'Autolyse, salt and four rounds of stretch-and-folds.',
startsAt: '2027-03-16T19:00:00-04:00',
endsAt: '2027-03-16T20:00:00-04:00',
},
{
title: 'Shape and cold-proof overnight',
detail: 'Build surface tension, then let the fridge do the work.',
startsAt: '2027-03-17T19:00:00-04:00',
endsAt: '2027-03-17T20:00:00-04:00',
},
{
title: 'Score and bake in a home oven',
detail: 'Dutch oven, steam and the moment the ear opens.',
startsAt: '2027-03-18T19:00:00-04:00',
endsAt: '2027-03-18T20:15:00-04:00',
},
{
title: 'Slice, taste and plan loaf two',
detail: 'Read your crumb and pick the one thing to change next time.',
startsAt: '2027-03-19T19:00:00-04:00',
endsAt: '2027-03-19T20:00:00-04:00',
},
]
const RESCUE_DAY: CalendarDay[] = [
{
title: 'Live Sourdough Rescue Q&A',
detail: 'Bring a photo of your loaf. We’ll fix flat, dense and gummy bread live.',
startsAt: '2027-03-20T10:00:00-04:00',
endsAt: '2027-03-20T11:00:00-04:00',
},
]
export default function CalendarActions2Specimen({ state = 'default' }: { state?: string }) {
const presenterImage = slot(
'presenter',
__studioImagef758d364,
)
const sceneImage = slot(
'scene',
__studioImagedc5bc70e,
)
const signatureImage = slot(
'signature',
__studioImageb3d6edc8,
)
const single = state === 'single'
const pieceState = state === 'hover' || state === 'active' || state === 'focus' || state === 'disabled' ? state : 'default'
return (
<CalendarActions2
state={pieceState}
days={single ? RESCUE_DAY : CHALLENGE_DAYS}
eventName={single ? 'Rise Bakehouse' : 'Rise Bakehouse 5-Day Sourdough Challenge'}
timezone='America/New_York'
location='Online. Your join link is in your welcome email.'
description='A live lesson from Rise Bakehouse. Keep your starter, flour and a kitchen scale nearby.'
heading={
single ? (
<>
Save your seat at the <span className='cfca2-mark'>Saturday rescue Q&A</span>
</>
) : (
<>
Put <span className='cfca2-mark'>all five bake nights</span> on your calendar
</>
)
}
salutation='Dear baker,'
letter={
single
? [
'One hour, live, on Saturday morning. Bring a photo of your last loaf and the question that keeps you up at night.',
'Put it on your calendar now, so Saturday doesn’t sneak past you while the coffee’s brewing.',
]
: [
'Great sourdough is baked on day five, but it’s won on day one, when you feed your starter at the right hour.',
'Each evening builds on the last. Skip Wednesday’s shaping and Thursday’s bake has nothing to rise from.',
'So give your first loaf a fair shot. Put all five evenings on your calendar now, while you’re thinking about it.',
]
}
signOff={single ? 'See you Saturday morning,' : 'See you at the bench on Monday,'}
signature='Marta'
signatureImage={signatureImage}
signerName='Marta Ellison'
signerRole='Head baker, Rise Bakehouse'
presenterImage={presenterImage}
presenterAlt='Marta Ellison, head baker at Rise Bakehouse'
sceneImage={sceneImage}
sceneAlt='A round sourdough loaf with a crackly golden crust, one slice cut to show an open crumb'
sceneCaption={
single
? 'The loaf you’re aiming for. On Saturday we fix whatever stands in the way.'
: 'Friday’s goal: a crackly, open-crumb loaf from your own oven.'
}
/>
)
}
| Name | Type | Details |
|---|---|---|
days RequiredCalendarActions2 |
CalendarDay[] |
|
eventName RequiredCalendarActions2 |
string |
|
timezone RequiredCalendarActions2 |
string |
|
timezoneLabel OptionalCalendarActions2 |
string |
|
location OptionalCalendarActions2 |
string |
|
description OptionalCalendarActions2 |
string |
|
durationMinutes OptionalCalendarActions2 |
number |
|
reminderMinutes OptionalCalendarActions2 |
number |
|
locale OptionalCalendarActions2 |
string |
|
weekStartsOn OptionalCalendarActions2 |
0 | 1 |
|
initialDay OptionalCalendarActions2 |
number |
|
heading OptionalCalendarActions2 |
React.ReactNode |
|
salutation OptionalCalendarActions2 |
React.ReactNode |
|
letter OptionalCalendarActions2 |
React.ReactNode[] |
|
signOff OptionalCalendarActions2 |
React.ReactNode |
|
signature OptionalCalendarActions2 |
string |
|
signatureImage OptionalCalendarActions2 |
string |
|
signerName OptionalCalendarActions2 |
string |
|
signerRole OptionalCalendarActions2 |
string |
|
presenterImage OptionalCalendarActions2 |
string |
|
presenterAlt OptionalCalendarActions2 |
string |
|
sceneImage OptionalCalendarActions2 |
string |
|
sceneAlt OptionalCalendarActions2 |
string |
|
sceneCaption OptionalCalendarActions2 |
React.ReactNode |
|
copy OptionalCalendarActions2 |
Partial<CalendarActions2Copy> |
|
disabled OptionalCalendarActions2 |
boolean |
|
state OptionalCalendarActions2 |
CalendarActions2State |
|
onAction OptionalCalendarActions2 |
(action: CalendarActionDetail, event: React.MouseEvent<HTMLAnchorElement>) => void |
|
className OptionalCalendarActions2 |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-border--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter- A photo of the host, coach or founder.
scene- A wide atmosphere photo behind or beside the copy.
signature- The founder’s handwritten signature.
-
43c8f3252da6bdcb.webp
image/webp · 165 KB
-
817bbbc565e3051b.webp
image/webp · 230 KB
-
f5d721b031a8c876.webp
image/webp · 57.7 KB