pouncejs
Version:
A collection of UI components from Panther labs
16 lines (13 loc) • 654 B
JavaScript
import { pounce, NativeAttributes } from '../../system';
import { __DEV__ } from '../../utils/helpers'; // eslint-disable-next-line @typescript-eslint/no-explicit-any
/**
* Responsive box-model layout component. Apart from the defined props,
* it also supports all the native HTML attributes.
* */
var Box = pounce('div'); // FIXME: This overrides the fact that the box is a `div`. Components implementing this will warn us
// that they can't implement `<Box>` when they themselves are not a div. We should ideally fix that
// and have `ref` can be properly typed in all components
export default Box;
if (__DEV__) {
Box.displayName = 'Box';
}