@wordpress/components
Version:
UI components for WordPress.
20 lines • 669 B
TypeScript
import type { TextareaHTMLAttributes } from 'react';
import type { BaseControlProps } from '../base-control/types';
export type TextareaControlProps = Pick<BaseControlProps, '__nextHasNoMarginBottom' | 'hideLabelFromVision' | 'help' | 'label'> & {
/**
* A function that receives the new value of the textarea each time it
* changes.
*/
onChange: (value: string) => void;
/**
* The current value of the textarea.
*/
value: string;
/**
* The number of rows the textarea should contain.
*
* @default 4
*/
rows?: TextareaHTMLAttributes<HTMLTextAreaElement>['rows'];
};
//# sourceMappingURL=types.d.ts.map