Cnippet

Label with Optional Indicator

Forms

About

A form field that pairs a label with a muted "(optional)" hint and a text input, marking the field as not required.

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

Code

How Label with Optional Indicator is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import Pattern from "@/components/ui/v-label-5";

export default function Default() {
  return (
    <div className="flex min-h-64 w-full items-center justify-center p-8">
      <Pattern />
    </div>
  );
}

More by Cnippet

View all
  • Team

    Team

    1.3K
  • Davincho Hero-1

    Davincho Hero-1

    692
  • Aero Hero-3

    Aero Hero-3

    591
  • Features

    Features

    521
  • Random Letter Swap Navigation

    Random Letter Swap Navigation

    516
  • Services with Animated Hover Modal

    Services with Animated Hover Modal

    474
  • Blogs

    Blogs

    399
  • Aero Hero-1

    Aero Hero-1

    369

More in Forms

View all
  • Form

    Form

    137
  • Contact Card

    Contact Card

    1.1K
  • Premium Auth

    Premium Auth

    540
  • Login 1

    Login 1

    57
  • Card Studio

    Card Studio

    45
  • Login 2

    Login 2

    10
  • Book A Demo 1

    Book A Demo 1

    80
  • Login Card

    Login Card

    30

Explore more

Part of Cnippet — browse the full library on 21st.dev.