UNPKG

amotify

Version:

UI Component for React,NextJS,esbuild

15 lines (14 loc) 708 B
/// <reference types="react" /> import { StyleProps, ReactElement } from '../@declares'; declare namespace Box { type Input<HTMLComponent extends React.ElementType> = { htmlTag?: HTMLComponent; children?: ReactElement; } & StyleProps.BasicElement & Omit<React.ComponentPropsWithRef<HTMLComponent>, 'htmlTag'> & React.HTMLAttributes<any>; type DefaultInput = Input<'div'>; type Component = { <T extends React.ElementType = 'div'>(p: Input<T>): React.JSX.Element; }; } declare const Box: <T extends React.ElementType<any, keyof React.JSX.IntrinsicElements> = "div">(p: Box.Input<T>) => import("react/jsx-runtime").JSX.Element | null; export { Box, Box as default };