kemiljk

Label

Forms 1

About

A standalone, accessible label element for composing custom form controls that don't render their own label, with an optional required-field asterisk.

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 LabelDemo() {
  return (
    <div style={{ display: "flex", flexDirection: "column", gap: "0.5rem" }}>
      <Label htmlFor="demo-volume">Volume</Label>
      <input id="demo-volume" type="range" />
      <Label htmlFor="demo-name" required>
        Full name
      </Label>
      <input id="demo-name" type="text" />
    </div>
  );
}

More by kemiljk

View all
  • Switch

    Switch

    10
  • Color Picker

    Color Picker

    6
  • Combobox

    Combobox

    1
  • Resizable

    Resizable

    1
  • Hover Card

    Hover Card

    1
  • Progress

    Progress

  • Navigation Menu

    Navigation Menu

  • Textarea

    Textarea

More in Forms

View all
  • Form

    Form

    7
  • Contact Form

    Contact Form

    32
  • Login 2

    Login 2

    16
  • Contact Card

    Contact Card

    1.1K
  • Book A Demo 1

    Book A Demo 1

    94
  • Paper Plane

    Paper Plane

    80
  • Premium Auth

    Premium Auth

    613
  • Authentication Card

    Authentication Card

    52