Adding custom link text to a URLInputButton

I think the solution is clearer, and already hinted at in your attributes Add a new input for the text, and set its value to the btnText attributes value, allow it to update that attribute on change when you set the URL, don’t use (post && post.title) || ‘Click here’ instead use (post && post.title) … Read more