Jason Mohab-Ali

Label

Forms

About

Form label component with an optional required asterisk in brand-red. Standard <label> forwarding props plus a required boolean prop. Pairs with input/textarea via htmlFor.

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

Code

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

Usage.tsx

import Label from '@/components/ui/label'

export default function Demo() {
  return (
    <div className="flex flex-col gap-4 p-8 bg-slate-50 max-w-md">
      <Label required htmlFor="demo-name">
        Naam
      </Label>
      <Label htmlFor="demo-email">E-mailadres</Label>
      <Label required htmlFor="demo-phone">
        Telefoonnummer
      </Label>
    </div>
  )
}

Dependencies

More by Jason Mohab-Ali

View all
  • Path to Resilience Orbital Timeline

    Path to Resilience Orbital Timeline

    46
  • Alqemist Interactive Demo

    Alqemist Interactive Demo

    12
  • What Saa SChat Inbox

    What Saa SChat Inbox

    12
  • Qreatify Super Agent Card

    Qreatify Super Agent Card

    6
  • Alqemist Security

    Alqemist Security

    5
  • Alqemist Hero

    Alqemist Hero

    4
  • Path to Resilience Partnership Section

    Path to Resilience Partnership Section

    3
  • Path to Resilience Workflow Grid

    Path to Resilience Workflow Grid

    3

More in Forms

View all
  • Login 1

    Login 1

    63
  • Premium Auth

    Premium Auth

    570
  • Contact Card

    Contact Card

    1.1K
  • Form

    Form

    18
  • Book A Demo 1

    Book A Demo 1

    91
  • Authentication Card

    Authentication Card

    52
  • Card Studio

    Card Studio

    47
  • Login Card

    Login Card

    35