uiable

Required Field Label

Forms 1

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

    414
  • Card Tabs

    Card Tabs

    112
  • Financial Bento Grid

    Financial Bento Grid

    93
  • Chart Tooltip

    Chart Tooltip

    75
  • Portfolio Showcase Grid

    Portfolio Showcase Grid

    69
  • Marketing Hero Section

    Marketing Hero Section

    68
  • Sidebar with Search and Profile

    Sidebar with Search and Profile

    57
  • Position Sonner

    Position Sonner

    48

More in Forms

View all
  • Premium Auth

    Premium Auth

    528
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    76
  • Card Studio

    Card Studio

    41
  • Form

    Form

    17
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K
  • Split Sign In Form

    Split Sign In Form

    65
  • Login 2

    Login 2

    8

Explore more

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