amotify
Version:
UI Component for React,NextJS,esbuild
20 lines (19 loc) • 900 B
TypeScript
/// <reference types="react" />
import Box from './Box';
declare namespace Card {
type Input<E extends React.ElementType = typeof Box> = {
jsxElement?: E;
} & (E extends typeof Box ? Box.DefaultInput : Omit<React.ComponentPropsWithoutRef<E>, 'jsxElement'>);
type MainComponent = {
<E extends React.ElementType = typeof Box>(p: Input<E>): React.JSX.Element;
};
type FNs = {
Border: <E extends React.ElementType = typeof Box>(p: Input<E>) => React.JSX.Element;
Plain: <E extends React.ElementType = typeof Box>(p: Input<E>) => React.JSX.Element;
Cloud: <E extends React.ElementType = typeof Box>(p: Input<E>) => React.JSX.Element;
Shadow: <E extends React.ElementType = typeof Box>(p: Input<E>) => React.JSX.Element;
};
type Methods = MainComponent & FNs;
}
declare const Card: Card.Methods;
export { Card, Card as default };