UNPKG

create-next-app-template

Version:

This is a template set up to create Next.js App with fast speed and high performance<br/> The current template is provided in a **page routing** structure.<br/>

41 lines (36 loc) 1.15 kB
import { CSSObject } from "@emotion/react"; import { ElementType, HTMLAttributes } from "react"; import { LayoutElementType } from "../piece/LayoutElementType"; import { MediaQueryType } from "../piece/MediaQueryType"; import { ExcludedProps } from "../piece/PipeLinePropsType"; import { TransitionType } from "../piece/TransitionType"; export interface PaddingType extends Omit<HTMLAttributes<HTMLElement>, ExcludedProps> { w?: number | string; maxW?: number | string; minW?: number | string; h?: number | string; maxH?: number | string; minH?: number | string; // padding all?: number | string; horizontal?: number | string; vertical?: number | string; top?: number | string; bottom?: number | string; left?: number | string; right?: number | string; } export interface PaddingPropsType<T extends ElementType = "div"> extends Omit<PaddingType, ExcludedProps> { as?: T; children: React.ReactNode; css?: CSSObject; zIndex?: number; transition?: TransitionType; _mq?: MediaQueryType<PaddingType>; } export type PaddingLayoutElement = Omit< PaddingPropsType<LayoutElementType>, ExcludedProps >;