Hiyve Components - v1.0.0
    Preparing search index...
    • A URL field with Apply (and optionally Remove). Typed input is normalised with normalizeLinkHref: a bare domain gets https://, and anything that is not http/https/mailto/tel keeps Apply disabled.

      Parameters

      Returns Element

      <LinkUrlPopover
      anchorEl={anchor}
      initialUrl={editor.getAttributes('link').href}
      canRemove={editor.isActive('link')}
      onApply={(href) => editor.chain().focus().extendMarkRange('link').setLink({ href }).run()}
      onRemove={() => editor.chain().focus().extendMarkRange('link').unsetLink().run()}
      onClose={() => setAnchor(null)}
      labels={{ urlPlaceholder: 'Paste or type a URL', apply: 'Apply', remove: 'Remove link' }}
      />