You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's apparently no way of styling a Download data component / button. I've tried with Tailwind classes, it can affect the font weight, but not color or background. I tried with in-file css, still no success. The most I could manage was adding a background with a parent element, but no changing the text inside the button.
How should it work?
It would be great if Download data buttons would either accept classes or custom css. <DownloadData data={categories} class="text-white bg-red-700" />
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
There's apparently no way of styling a Download data component / button. I've tried with Tailwind classes, it can affect the font weight, but not color or background. I tried with in-file css, still no success. The most I could manage was adding a background with a parent element, but no changing the text inside the button.

How should it work?
It would be great if Download data buttons would either accept classes or custom css.
<DownloadData data={categories} class="text-white bg-red-700" />Beta Was this translation helpful? Give feedback.
All reactions