@wordpress/components
Version:
UI components for WordPress.
27 lines • 885 B
TypeScript
/**
* Internal dependencies
*/
import type { BaseControlProps } from '../base-control/types';
export type TextControlProps = Pick<BaseControlProps, 'className' | 'hideLabelFromVision' | 'help' | 'label' | '__nextHasNoMarginBottom'> & {
/**
* A function that receives the value of the input.
*/
onChange: (value: string) => void;
/**
* The current value of the input.
*/
value: string | number;
/**
* Type of the input element to render. Defaults to "text".
*
* @default 'text'
*/
type?: 'date' | 'datetime-local' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'time' | 'search' | 'url';
/**
* Start opting into the larger default height that will become the default size in a future version.
*
* @default false
*/
__next40pxDefaultSize?: boolean;
};
//# sourceMappingURL=types.d.ts.map