@wordpress/block-library
Version:
Block library for the WordPress editor.
15 lines • 589 B
TypeScript
interface ViewLinkButtonProps {
/** The link, as stored in the block's attributes. */
url?: string;
}
/**
* The block inspector's "View" button for a block that links somewhere. It
* opens the link in a new tab, resolved against the site's home URL, and
* renders nothing while there is no link to open.
*
* @param props Component props.
* @param props.url The link, as stored in the block's attributes.
*/
export default function ViewLinkButton({ url }: ViewLinkButtonProps): import("react").JSX.Element | null;
export {};
//# sourceMappingURL=view-link-button.d.ts.map