UNPKG

@wordpress/components

Version:
23 lines 734 B
import type { BaseControlProps } from './types'; /** * Generate props for the `BaseControl` and the inner control itself. * * Namely, it takes care of generating a unique `id`, properly associating it with the `label` and `help` elements. * * @param props */ export declare function useBaseControlProps(props: Omit<BaseControlProps, 'children'>): { baseControlProps: { __nextHasNoMarginBottom?: boolean; label?: import("react").ReactNode; hideLabelFromVision?: boolean; className?: string; id: string; help: import("react").ReactNode; }; controlProps: { id: string; 'aria-describedby'?: string | undefined; }; }; //# sourceMappingURL=hooks.d.ts.map