UNPKG

daily-toolset

Version:

A lightweight, versatile collection of TypeScript utility functions for everyday development needs. Simplify and streamline your Node.js, React, and Next.js projects with a powerful suite of well-organized helpers for strings, arrays, dates, objects, and

10 lines (9 loc) 370 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Label = Label; const jsx_runtime_1 = require("react/jsx-runtime"); function Label({ id, label, isRequired }) { if (!label) return null; return ((0, jsx_runtime_1.jsx)("label", { className: "input-label", htmlFor: id, "data-required": isRequired, children: label })); }