Edwin Vakayil

New Calendar

Cards 57

About

This is calendar component

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds New Calendar to your project and fits it to your theme.

Code

How New Calendar is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { useState } from "react";
import { Calendar } from "@/components/ui/calendar";
import { format } from "date-fns";

export function CalendarPreview() {
  const [selected, setSelected] = useState<Date | undefined>(new Date(2026, 4, 6));

  return (
    <div className="flex items-center justify-center min-h-screen">
      <div className="rounded-2xl border border-border/50 bg-card p-6 shadow-sm">
        <Calendar
          defaultMonth={new Date(2026, 4)}
          onSelect={(date: Date | undefined) => setSelected(date)}
          selected={selected}
          size="sm"
          mode="single"
        />
        {selected && (
          <div className="mt-4 border-t border-border/50 pt-4">
            <p className="text-xs font-medium tracking-widest text-muted-foreground uppercase">
              Selected
            </p>
            <p className="text-base font-medium text-foreground mt-1">
              {format(selected, "EEEE, MMMM do, yyyy")}
            </p>
          </div>
        )}
      </div>
    </div>
  );
}

export default CalendarPreview;

Dependencies

More by Edwin Vakayil

View all
  • Origin Button

    Origin Button

    769
  • Infinite Ribbon

    Infinite Ribbon

    524
  • Shimmer Text

    Shimmer Text

    402
  • Dia Text

    Dia Text

    345
  • Icon Bar

    Icon Bar

    244
  • FAQ Pro

    FAQ Pro

    224
  • Verified Badge

    Verified Badge

    212
  • New Card

    New Card

    183

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    33
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Statistics Card 2

    Statistics Card 2

    264
  • Statistics Card 10

    Statistics Card 10

    263
  • Card

    Card

    17
  • Card Studio

    Card Studio

    9
  • The Item one

    The Item one

    3