UNPKG

@explita/daily-toolset-components

Version:

A lightweight and versatile collection of TypeScript utility functions and form components, inspired by ShadCN UI, designed for seamless everyday development. Enhance your Node.js, React, and Next.js projects with a well-structured suite of helpers for st

13 lines (12 loc) 534 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Label = Label; const react_1 = __importDefault(require("react")); function Label({ id, label, isRequired, className = "" }) { if (!label) return null; return (react_1.default.createElement("label", { className: `input-label ${className}`, htmlFor: id, "data-required": isRequired }, label)); }