UNPKG

@wordpress/block-library

Version:
10 lines • 383 B
/** * Returns whether a Social Icon's link looks valid: a URL, with or without * its protocol, or an email address for the Mail icon. It uses the same check * as the link popover, and an empty link is valid. * * @param url The link. * @return Whether the link is valid. */ export default function isValidLink(url?: string): boolean; //# sourceMappingURL=is-valid-link.d.ts.map