carta-md
Version:
A lightweight, fully customizable, Markdown editor
32 lines (31 loc) • 727 B
TypeScript
/**
* Base props for HTML textarea element.
*/
interface BaseTextAreaProps {
id?: string;
name?: string;
autoCapitalize?: string;
autoComplete?: string;
autoFocus?: boolean;
dirname?: string;
disabled?: boolean;
form?: string;
maxLength?: number;
minLength?: number;
required?: boolean;
spellcheck?: boolean;
/**
* Bind the value to the Editor instead.
*/
value?: never;
/**
* Use the placeholder property of the Editor instead.
*/
placeholder?: never;
class?: never;
}
/**
* Props for HTML textarea element.
*/
export type TextAreaProps<T extends Record<string, unknown> = Record<string, unknown>> = BaseTextAreaProps & T;
export {};