UNPKG

@equinor/eds-core-react

Version:

The React implementation of the Equinor Design System

27 lines (24 loc) 602 B
import { forwardRef } from 'react'; import styled from 'styled-components'; import { InnerContext } from './Inner.context.js'; import { jsx } from 'react/jsx-runtime'; const TableBase = styled.tbody.withConfig({ displayName: "Body__TableBase", componentId: "sc-1pdmiku-0" })([""]); const Body = /*#__PURE__*/forwardRef(function Body({ children, ...props }, ref) { return /*#__PURE__*/jsx(InnerContext.Provider, { value: { variant: 'body' }, children: /*#__PURE__*/jsx(TableBase, { ...props, ref: ref, children: children }) }); }); export { Body };