Isaiah

Input Mask

Cards 18

About

A credit-card style text input that auto-formats digits into 4-character groups as the user types, useful for payment or card-number fields.

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

Code

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

Usage.tsx

import InputMask from "@/components/ui/primitive-input-mask";

export default function InputMaskDemo() {
  return (
    <div className="flex min-h-[240px] w-full items-center justify-center p-8">
      <InputMask />
    </div>
  );
}

Dependencies

More by Isaiah

View all
  • Agent Plan

    Agent Plan

    2.2K
  • Video Scroll Hero

    Video Scroll Hero

    1.4K
  • Voice Powered Orb

    Voice Powered Orb

    1.3K
  • Reveal Text

    Reveal Text

    1.1K
  • Leads Data Table

    Leads Data Table

    935
  • Portfolio Gallery

    Portfolio Gallery

    922
  • Message Dock

    Message Dock

    833
  • Ruler Carousel

    Ruler Carousel

    617

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