Label

Labels help users understand input fields.

@radix-ui/react-label

@lucide-react

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes-storev2.vercel.app/r/label.json

Examples


RequiredMark & Subtitle


API Reference

This component is based on the <div> element and supports all of its props and adds:

Label

PropTypeDefault
requiredbooleanfalse

LabelSub

Displays a description, helper text, or additional information for the input. Usually appears below the main label.