UNPKG

amotify

Version:

UI Component for React,NextJS,esbuild

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