newrelic / nr1-community

An open-source library of useful components for building on New Relic One's programmability platform.
https://developer.newrelic.com
Apache License 2.0
11 stars 12 forks source link

Allow empty state button to link to a separate page #37

Closed danielgolden closed 4 years ago

danielgolden commented 4 years ago

Summary

We do not give users access to the to prop on the <Button /> component in the <EmptyState /> component, this makes it difficult for users to make that button link to a url.

Desired Behaviour

When you want the button to navigate to a URL, you should just be able to say something like <EmptyState buttonUrl="http://google.com/" />.

Possible Solution

Just add buttonUrl prop onto the <EmptyState /> component.