Label

Label: Accessible form label with required indicator, tooltip popover, and focus sync. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Label

npx motion-ui-skill add label

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • @radix-ui/react-label
  • clsx
  • react
  • tailwind-merge

Source files

Label

Component from Motion UI: label

Install

npx motion-ui-skill add label

Dependencies

  • @radix-ui/react-label
  • clsx
  • react
  • tailwind-merge

Usage

"use client";

import Label from "@/components/motion/label";

export function Example() {
  return (
    <div className="p-6">
      <Label />
    </div>
  );
}

Browse this category