@lumx/react 4.14.0-next.3 → 4.14.0-next.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1902,6 +1902,8 @@ interface InputLabelProps$1 extends HasClassName, HasTheme {
1902
1902
  isRequired?: boolean;
1903
1903
  /** ref to the root element */
1904
1904
  ref?: CommonRef;
1905
+ /** HTML tag for rendering the label, defaults to `label` */
1906
+ as?: 'label' | 'legend';
1905
1907
  }
1906
1908
 
1907
1909
  /**
package/index.js CHANGED
@@ -1824,11 +1824,13 @@ function InputLabel$1(props) {
1824
1824
  htmlFor,
1825
1825
  isRequired,
1826
1826
  theme,
1827
+ as,
1827
1828
  typography: typography$1,
1828
1829
  ref,
1829
1830
  ...forwardedProps
1830
1831
  } = props;
1831
- return /*#__PURE__*/jsx("label", {
1832
+ const ComponentToUse = as || 'label';
1833
+ return /*#__PURE__*/jsx(ComponentToUse, {
1832
1834
  ref: ref,
1833
1835
  ...forwardedProps,
1834
1836
  htmlFor: htmlFor,