mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
20 lines
501 B
TypeScript
20 lines
501 B
TypeScript
import React, { forwardRef, Ref } from 'react';
|
|
import { SystemProps, x } from '@xstyled/emotion';
|
|
|
|
interface IProps {
|
|
className?: string;
|
|
}
|
|
export interface BoxProps
|
|
extends SystemProps,
|
|
IProps,
|
|
Omit<React.HTMLProps<HTMLDivElement>, 'color' | 'as'> { }
|
|
|
|
export const Box = forwardRef(
|
|
({ className, ...rest }: BoxProps, ref: Ref<HTMLDivElement>) => {
|
|
const Element = x.div;
|
|
|
|
return <Element className={className} ref={ref} {...rest} />;
|
|
},
|
|
);
|
|
Box.displayName = '@bigcapital/Box';
|