UNPKG

@wordpress/components

Version:
21 lines 660 B
/** * 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?: 'email' | 'number' | 'password' | 'tel' | 'text' | 'search' | 'url'; }; //# sourceMappingURL=types.d.ts.map