uiable

Required Field Label

Forms 4

About

A form label showing a required-field asterisk next to an info tooltip, paired with its input for building accessible required form fields.

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

Code

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

Usage.tsx

import LabelRequired from "@/components/ui/label-required";

export default function LabelRequiredDemo() {
  return (
    <div className="flex w-full items-center justify-center p-10">
      <LabelRequired />
    </div>
  );
}

Dependencies

More by uiable

View all
  • Feature Highlights Grid

    Feature Highlights Grid

    600
  • Card Tabs

    Card Tabs

    160
  • Financial Bento Grid

    Financial Bento Grid

    157
  • Portfolio Showcase Grid

    Portfolio Showcase Grid

    107
  • Marketing Hero Section

    Marketing Hero Section

    107
  • Chart Tooltip

    Chart Tooltip

    100
  • Sidebar with Search and Profile

    Sidebar with Search and Profile

    93
  • Attachment States

    Attachment States

    70

More in Forms

View all
  • Form

    Form

    10
  • Contact Form

    Contact Form

    33
  • Premium Auth

    Premium Auth

    616
  • Paper Plane

    Paper Plane

    113
  • Contact Card

    Contact Card

    1.1K
  • Form

    Form

    18
  • Onboarding Stepper

    Onboarding Stepper

    14
  • Input

    Input

    14

Explore more

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