@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.
17 lines • 827 B
JavaScript
import * as React from "react";
import cx from "clsx";
import defaultTheme from "../../defaultTheme";
const FormFeedback = props => {
const {
children,
dataTest
} = props;
return /*#__PURE__*/React.createElement("div", {
className: cx("orbit-choice-group-feedback", "text-critical-foreground font-base leading-small text-small font-medium", "mt-xxxs relative top-full max-h-[--max-height] w-full overflow-hidden overflow-ellipsis whitespace-nowrap", "[&_a]:cursor-pointer [&_a]:underline", "[&_strong]:text-ink-dark [&_b]:text-ink-dark [&_b]:font-medium [&_strong]:font-medium"),
style: {
"--max-height": Math.floor(parseFloat(defaultTheme.orbit.lineHeightText) * parseInt(defaultTheme.orbit.fontSizeFormFeedback, 10))
},
"data-test": dataTest
}, children);
};
export default FormFeedback;