@wordpress/components
Version:
UI components for WordPress.
21 lines • 661 B
TypeScript
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