UNPKG

@equinor/eds-core-react

Version:

The React implementation of the Equinor Design System

28 lines (25 loc) 658 B
import { forwardRef } from 'react'; import styled, { css } from 'styled-components'; import { jsx } from 'react/jsx-runtime'; const StyledPopoverTitle = styled.div.withConfig({ displayName: "PopoverTitle__StyledPopoverTitle", componentId: "sc-1ben8su-0" })(({ theme }) => { return css(["max-width:", ";margin-right:", ";overflow:hidden;"], theme.maxWidth, theme.spacings.right); }); const PopoverTitle = /*#__PURE__*/forwardRef(function PopoverTitle({ children, ...rest }, ref) { const props = { ...rest, ref }; return /*#__PURE__*/jsx(StyledPopoverTitle, { ...props, children: children }); }); export { PopoverTitle };