vcc-ui
Version:
VCC UI is a collection of React UI Components that can be used for developing front-end applications at Volvo Car Corporation.
18 lines (13 loc) • 496 B
JavaScript
import React from 'react';
import { deprecate, deprecateInnerRef } from '../../deprecate';
import { Flex } from '../flex';
// TODO: remove once 2.0.0 hits
export const Box = React.forwardRef((props, ref) => {
deprecate(
'<Box> has been renamed to <Flex> recently. Please import Flex directly as Box will be reused as a more basic building block component in version 2.0.0.',
true
);
deprecateInnerRef(props);
return <Flex {...props} ref={ref} />;
});
Box.displayName = 'Box';