Clevision

Calendar

Component 1

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 CalendarWeekNumberDemo = () => {
  const [date, setDate] = useState<Date | undefined>(new Date())

  return (
    <div>
      <Calendar
        mode='single'
        defaultMonth={date}
        selected={date}
        onSelect={setDate}
        className='rounded-lg border shadow-sm'
        showWeekNumber
      />
      <p className='text-muted-foreground mt-4 text-center text-xs' role='region'>
        Week number calendar
      </p>
    </div>
  )
}

export default CalendarWeekNumberDemo

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