@use-ui/bootstrap3
Advanced tools
Comparing version 1.0.30 to 1.0.31
@@ -10,2 +10,4 @@ import * as React from "react"; | ||
style?: CSSProperties; | ||
/** @param The id of the input element */ | ||
htmlFor?: string; | ||
} | ||
@@ -12,0 +14,0 @@ /** |
@@ -11,3 +11,3 @@ "use strict"; | ||
var FormGroup = function (_a) { | ||
var _b = _a.label, label = _b === void 0 ? null : _b, _c = _a.invalidFeedback, invalidFeedback = _c === void 0 ? null : _c, _d = _a.style, style = _d === void 0 ? undefined : _d, children = _a.children; | ||
var _b = _a.label, label = _b === void 0 ? null : _b, _c = _a.invalidFeedback, invalidFeedback = _c === void 0 ? null : _c, _d = _a.style, style = _d === void 0 ? undefined : _d, children = _a.children, _e = _a.htmlFor, htmlFor = _e === void 0 ? undefined : _e; | ||
if (label == null) { | ||
@@ -17,3 +17,3 @@ return React.createElement(React.Fragment, null, children); | ||
return (React.createElement("div", { className: "form-group", style: style }, | ||
label && React.createElement("label", { className: classNames.label }, label), | ||
label && (React.createElement("label", { className: classNames.label, htmlFor: htmlFor }, label)), | ||
React.createElement("div", { className: classNames.field }, | ||
@@ -20,0 +20,0 @@ children, |
{ | ||
"name": "@use-ui/bootstrap3", | ||
"version": "1.0.30", | ||
"version": "1.0.31", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82877
46
1735