UNPKG

amotify

Version:

UI Component for React,NextJS,esbuild

14 lines (13 loc) 534 B
/// <reference types="react" /> import { Box } from '../atoms'; declare namespace Plate { type Input<E extends React.ElementType = typeof Box> = { size?: 'MIN' | 'XS' | 'S' | 'R' | 'L' | 'XL' | 'MAX'; jsxElement?: E; } & (E extends typeof Box ? Box.DefaultInput : Omit<React.ComponentPropsWithoutRef<E>, 'jsxElement'>); type Component = { <E extends React.ElementType = typeof Box>(p: Input<E>): React.JSX.Element; }; } declare const Plate: Plate.Component; export { Plate, Plate as default };