UNPKG

watercolor-ui

Version:

A modern minimalist cross-framework component library

42 lines 1.15 kB
/** * 通用布局组件 Box (React) * Vue 版保持接口一致,尽量通过 style 而非 class 实现,保证灵活性 */ export default function Box({ component: Comp, children, className, p, pt, pr, pb, pl, px, py, m, mt, mr, mb, ml, mx, my, display, flexDirection, justifyContent, alignItems, flexWrap, gap, bgcolor, color, border, borderRadius, width, height, minWidth, minHeight, maxWidth, maxHeight, style: styleProp, ...rest }: { [x: string]: any; component?: string | undefined; children: any; className?: string | undefined; p: any; pt: any; pr: any; pb: any; pl: any; px: any; py: any; m: any; mt: any; mr: any; mb: any; ml: any; mx: any; my: any; display: any; flexDirection: any; justifyContent: any; alignItems: any; flexWrap: any; gap: any; bgcolor: any; color: any; border: any; borderRadius: any; width: any; height: any; minWidth: any; minHeight: any; maxWidth: any; maxHeight: any; style?: {} | undefined; }): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=Box.d.ts.map