ai 2

Compact Date Picker

Forms 2

About

A small, framer-motion-animated date picker with dense, minimal, narrow, inline and bare layout variants for tight spaces like toolbars or inline text.

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

Code

How Compact Date Picker is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import {
  DenseDatePicker,
  MinimalDatePicker,
  NarrowDatePicker,
  InlineCompactDatePicker,
  BareDatePicker,
} from "@/components/ui/date-picker-compact";

export default function DatePickerCompactDemo() {
  return (
    <div className="flex w-full flex-col items-center justify-center gap-8 p-10">
      <div className="flex flex-wrap items-start gap-8">
        <div className="flex flex-col gap-2">
          <span className="text-xs font-medium text-muted-foreground">
            Dense
          </span>
          <DenseDatePicker />
        </div>
        <div className="flex flex-col gap-2">
          <span className="text-xs font-medium text-muted-foreground">
            Minimal
          </span>
          <MinimalDatePicker />
        </div>
        <div className="flex flex-col gap-2">
          <span className="text-xs font-medium text-muted-foreground">
            Narrow
          </span>
          <NarrowDatePicker />
        </div>
        <div className="flex flex-col gap-2">
          <span className="text-xs font-medium text-muted-foreground">
            Bare
          </span>
          <BareDatePicker />
        </div>
      </div>
      <p className="text-sm text-foreground">
        Pick a date: <InlineCompactDatePicker />
      </p>
    </div>
  );
}

Dependencies

More by ai 2

View all
  • Ripple Buttons

    Ripple Buttons

    31
  • Styled Toggle Switches

    Styled Toggle Switches

    17
  • Styled Progress Bars

    Styled Progress Bars

    15
  • Styled Badges

    Styled Badges

    10
  • Particle Toggles

    Particle Toggles

    8
  • OTP Pin Input

    OTP Pin Input

    8
  • Combo Kbd

    Combo Kbd

    7
  • Shapes Skeleton

    Shapes Skeleton

    6

More in Forms

View all
  • Premium Auth

    Premium Auth

    524
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    73
  • Login 1

    Login 1

    53
  • Form

    Form

    137
  • Card Studio

    Card Studio

    41
  • SignInPage

    SignInPage

    667
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K