package-trendsv0.2.1 Text
  1. package-trends
  2. Variants
  3. Text

Text

One line: the count, the word, the change. It sets no colour of its own unless you ask, so it reads as part of the sentence around it.

974.4M downloads +1.5%

The code for what is on screen

<PackageTrend
  package="react"
  variant="text"
  colors={{ up: "#15803d", down: "#b3261e" }}
/>

Unset, the change inherits the surrounding colour — which is what keeps the component out of a host's palette. The data-direction attribute is on the element either way, so a stylesheet can colour it instead of a prop.