UNPKG

dynamic-modal

Version:

The dynamic-modal is a solution of creation different modals into project using a json configuration file

13 lines (12 loc) 541 B
import { TextareaHTMLAttributes } from 'react'; import { IField, IFieldProps } from './field'; type ITextareaHtmlProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'name' | 'id' | 'style' | 'onChange' | 'value' | 'placeholder' | 'defaultValue' | 'disabled' | 'cols' | 'rows'>; export interface IMakeTextarea extends IField, ITextareaHtmlProps { elementType: 'textarea'; cols?: number; rows?: number; } export interface IMakeTextareaProps extends IFieldProps { element: Omit<IMakeTextarea, 'elementType'>; } export {};