public static TagResolver.@NotNull Single component(@TagPattern final @NotNull String key, final @NotNull ComponentLike value) {
    return TagResolver.resolver(key, Tag.selfClosingInserting(value));
  }
Creates a replacement that inserts a component.

<p>This replacement is auto-closing, so its style will not influence the style of following components.</p>

@param key the key
@param value the replacement
@return the placeholder
@since 4.10.0
text-minimessage/src/main/java/net/kyori/adventure/text/minimessage/tag/resolver/Placeholder.java