UNPKG

@equinor/eds-core-react

Version:

The React implementation of the Equinor Design System

25 lines (22 loc) 567 B
import { forwardRef } from 'react'; import styled, { css } from 'styled-components'; import { jsx } from 'react/jsx-runtime'; const StyledCaption = styled.caption.withConfig({ displayName: "Caption__StyledCaption", componentId: "sc-rtfr07-0" })(({ $captionSide }) => { return css(["caption-side:", ";"], $captionSide); }); const Caption = /*#__PURE__*/forwardRef(function Caption({ captionSide = 'top', ...props }, ref) { return /*#__PURE__*/jsx(StyledCaption, { $captionSide: captionSide, ...props, ref: ref }); }); export { Caption };