Staaarter

Calendar Integration Section

Event calendar-sync section: a heading ("Add to your calendar") plus a row of export option buttons, each with a relevant icon, for Google Calendar, an Outlook/email invite, and an ICS download. Perfect for event reminders and schedule syncing.

By Staaarter Team
Event
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/calendar-integration-section.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/event/event33.tsx instead.

Usage

The file also exports event33Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Event33, event33Demo } from "@/components/blocks/event/event33";

export default function Page() {
  return <Event33 {...event33Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringundefinedSmall label above the heading.
headingReactNodenoneSection heading.
descriptionstringundefinedSupporting paragraph under the heading.
optionsCalendarOption[]noneCalendar export options, each rendered as an outline button with an icon.
classNamestringnoneExtra classes for the outer section element.

Types

interface CalendarOption {
  icon: LucideIcon;
  label: string;
  href?: string;
}

Behavior notes

  • Every calendar option renders as a plain link (Button with render={<Link/>}) pointing at href ("#" by default); there is no real calendar-sync integration or file download wired up, it's decorative in the demo.