@wordpress/components
Version:
UI components for WordPress.
27 lines • 794 B
TypeScript
import type { BaseControlProps } from '../base-control/types';
export type ContentEditableControlProps = Pick<BaseControlProps, 'className' | 'hideLabelFromVision' | 'help'> & {
/**
* Label text for the control.
*/
label: string;
/**
* Whether the field is non-editable.
*
* @default false
*/
disabled?: boolean;
/**
* Whether the field is required. Exposed to assistive technology via
* `aria-required`.
*
* @default false
*/
required?: boolean;
/**
* Placeholder text shown while the element has no content. Exposed to
* assistive technology via `aria-placeholder` and drawn by the stylesheet
* when the element is empty.
*/
placeholder?: string;
};
//# sourceMappingURL=types.d.ts.map