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

    47
  • Alqemist Interactive Demo

    Alqemist Interactive Demo

    14
  • What Saa SChat Inbox

    What Saa SChat Inbox

    12
  • Qreatify Super Agent Card

    Qreatify Super Agent Card

    7
  • Alqemist Cta

    Alqemist Cta

    6
  • Alqemist Security

    Alqemist Security

    6
  • Alqemist Hero

    Alqemist Hero

    5
  • What Saa SApp Shell

    What Saa SApp Shell

    5

More in Forms

View all
  • Premium Auth

    Premium Auth

    593
  • Contact Form

    Contact Form

    28
  • Form

    Form

    4
  • Login 1

    Login 1

    70
  • Book A Demo 1

    Book A Demo 1

    94
  • Contact Card

    Contact Card

    1.1K
  • HeroUI Field Error

    HeroUI Field Error

    13
  • Form [react-aria-components]

    Form [react-aria-components]

    19