{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "simple-calendar-shadcnui", "type": "registry:component", "title": "Simple Calendar", "description": "Calendar picker with date selection animation", "registryDependencies": [ "button" ], "dependencies": [ "framer-motion", "react" ], "files": [ { "path": "@uitripled/react-shadcn/src/components/forms/simple-calendar.tsx", "content": "\"use client\";\n\nimport { motion } from \"framer-motion\";\nimport { ChevronLeft, ChevronRight } from \"lucide-react\";\nimport { useState } from \"react\";\n\nconst daysOfWeek = [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"];\nconst daysInMonth = Array.from({ length: 28 }, (_, i) => i + 1);\n\nexport function SimpleCalendar() {\n const [selectedDay, setSelectedDay] = useState(15);\n\n return (\n
\n
\n

January 2024

\n
\n \n \n \n \n \n \n
\n
\n\n
\n {daysOfWeek.map((day) => (\n \n {day}\n
\n ))}\n\n {daysInMonth.map((day) => (\n setSelectedDay(day)}\n className=\"relative aspect-square rounded-lg text-sm font-medium\"\n whileHover={{ scale: 1.1 }}\n whileTap={{ scale: 0.95 }}\n style={{\n color: selectedDay === day ? \"white\" : \"var(--foreground)\",\n }}\n >\n {selectedDay === day && (\n \n )}\n {day}\n \n ))}\n
\n \n );\n}\n", "type": "registry:component", "target": "components/uitripled/simple-calendar-shadcnui.tsx" } ] }