(description) &&
+ React.cloneElement(description, {
+ ...description.props,
+ id: descriptionId,
+ })}
+ >,
+ )}
+
+ {React.cloneElement(
+ createElementFromAs(contentSectionAs),
+ {
+ className: cx(
+ css({
+ flex: layoutValue({
+ vertical: undefined,
+ horizontal: 1,
+ } as const),
+ }),
+ React.isValidElement(contentSectionAs) &&
+ contentSectionAs.props.className,
+ ),
+ },
+ <>
+
+ {startAdornment}
+ {children}
+ {endAdornment}
+
+ {(helper || errorMessageElement) && (
+
+ {errorMessageElement || helper}
+
+ )}
+ >,
+ )}
+ >,
+ );
+ }}
+