Clevision

Calendar

Navigation 4

About

Here is Calendar component

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

Code

How 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'

const CalendarLeftYearMonthDemo = () => {
  const [date, setDate] = useState<Date | undefined>(new Date())

  return (
    <div>
      <Calendar
        mode='single'
        selected={date}
        defaultMonth={date}
        onSelect={setDate}
        className='rounded-md border'
        classNames={{
          month_caption: 'flex items-center h-8 justify-end',
          nav: 'flex justify-start absolute w-full items-center'
        }}
      />
      <p className='text-muted-foreground mt-4 text-center text-xs' role='region'>
        Left side month year navigation calendar
      </p>
    </div>
  )
}

export default CalendarLeftYearMonthDemo

More by Clevision

View all
  • Card Studio

    Card Studio

    106
  • Collapsible

    Collapsible

    43
  • Button Group

    Button Group

    39
  • Buttons

    Buttons

    34
  • Waitlist 01

    Waitlist 01

    33
  • Combobox

    Combobox

    32
  • Logo Cloud

    Logo Cloud

    31
  • Hero Section 44

    Hero Section 44

    30

More in Navigation

View all
  • Sidebar

    Sidebar

    362
  • Navbar

    Navbar

    8
  • Pagination

    Pagination

    38
  • Oversized 404 Numeral

    Oversized 404 Numeral

    72
  • Footer

    Footer

    456
  • Sortable Sidebar Navigation

    Sortable Sidebar Navigation

    75
  • Tabs like bookmark

    Tabs like bookmark

    75
  • Navbar with Theme Toggle

    Navbar with Theme Toggle

    59