UNPKG

@grafana/ui

Version:
29 lines (26 loc) 742 B
import { jsx } from 'react/jsx-runtime'; import { cx, css } from '@emotion/css'; import { forwardRef } from 'react'; import { useTheme2 } from '../../themes/ThemeContext.mjs'; import { getInputStyles } from '../Input/Input.mjs'; const IndicatorsContainer = forwardRef((props, ref) => { const { children } = props; const theme = useTheme2(); const styles = getInputStyles({ theme, invalid: false }); return /* @__PURE__ */ jsx( "div", { className: cx( styles.suffix, css({ position: "relative" }) ), ref, children } ); }); IndicatorsContainer.displayName = "IndicatorsContainer"; export { IndicatorsContainer }; //# sourceMappingURL=IndicatorsContainer.mjs.map