@mujo/box
Version:
A React utility to add a style guide to primative components
11 lines (10 loc) • 696 B
TypeScript
import React from 'react';
import { StyleGuideValue } from './types';
export declare function withBox<T, K = React.BaseHTMLAttributes<HTMLDivElement>>(options: StyleGuideValue): React.ForwardRefExoticComponent<React.PropsWithoutRef<Partial<Exclude<K, keyof T> & {
Component: React.ElementType<any>;
css: import("@emotion/react").CSSObject;
} & import("./types").SubObjectKeys<T>>> & React.RefAttributes<unknown>>;
export declare const Box: React.ForwardRefExoticComponent<Partial<React.BaseHTMLAttributes<HTMLDivElement> & {
Component: React.ElementType<any>;
css: import("@emotion/react").CSSObject;
} & import("./types").SubObjectKeys<unknown>> & React.RefAttributes<unknown>>;