UNPKG

@wordpress/components

Version:
21 lines 661 B
import type { ForwardedRef } from 'react'; import type { ButtonProps } from './types'; export declare function UnforwardedButton(props: ButtonProps, ref: ForwardedRef<any>): JSX.Element; /** * Lets users take actions and make choices with a single click or tap. * * ```jsx * import { Button } from '@wordpress/components'; * const Mybutton = () => ( * <Button * variant="primary" * onClick={ handleClick } * > * Click here * </Button> * ); * ``` */ export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<any>>; export default Button; //# sourceMappingURL=index.d.ts.map