UNPKG

@wordpress/components

Version:
22 lines • 1.09 kB
import type { ElementType, ForwardedRef, ReactElement, ReactNode } from 'react'; import type { WordPressComponentProps } from '../../context'; type StyledElementProps<T extends ElementType> = WordPressComponentProps<{ children?: ReactNode; }, T>; export declare const Wrapper: <T extends ElementType = 'div'>(props: StyledElementProps<T> & { ref?: ForwardedRef<any>; }) => ReactElement | null; export declare const StyledField: <T extends ElementType = 'div'>(props: StyledElementProps<T> & { ref?: ForwardedRef<any>; }) => ReactElement | null; export declare const StyledLabel: <T extends ElementType = 'label'>(props: StyledElementProps<T> & { ref?: ForwardedRef<any>; }) => ReactElement | null; export declare const StyledHelp: <T extends ElementType = 'p'>(props: StyledElementProps<T> & { ref?: ForwardedRef<any>; }) => ReactElement | null; export declare const StyledVisualLabel: <T extends ElementType = 'span'>(props: StyledElementProps<T> & { ref?: ForwardedRef<any>; }) => ReactElement | null; export {}; //# sourceMappingURL=base-control-styles.d.ts.map