UNPKG

@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 779 B
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-50 relative top-full max-h-[--max-height] w-full truncate", "[&_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.fontSizeTextSmall, 10)) }, "data-test": dataTest }, children); }; export default FormFeedback;