@nex-ui/react
Version:
🎉 A beautiful, modern, and reliable React component library.
20 lines (17 loc) • 622 B
TypeScript
import { ElementType } from 'react';
import { OverrideProps, SxProp } from '../../types/utils.js';
interface BoxPropsOverrides {
}
type BoxOwnProps<RootComponent extends ElementType> = {
/**
* The component or element to render as the root.
* @default 'div'
*/
as?: RootComponent;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProp<{}>;
};
type BoxProps<RootComponent extends ElementType = 'div'> = OverrideProps<RootComponent, BoxOwnProps<RootComponent>, BoxPropsOverrides>;
export type { BoxProps, BoxPropsOverrides };