GrowShrinkTag
proGrowShrinkTag displays a numeric value with directional arrows and color coding for growth (positive) or decline (negative).
12.5%-8.3%0%
Installation
Add this component with the NateUI CLI.
Examples
Without Icon
+25 units-15 units
Prefix and Suffix
+$320$-45
12.5%-3.2 pts
Custom Style
18.2%-5.7%
18.2%-5.7%
API
| Prop | Description | Type | Default |
|---|---|---|---|
value | The numeric value to display. Positive values show green/success styling, negative values show red/destructive styling. | number | 0 |
showIcon | Whether to show the directional arrow icon. | boolean | true |
prefix | Content to display before the value. | ReactNode | string | — |
suffix | Content to display after the value. | ReactNode | string | — |
className | Additional CSS classes to apply to the tag. | string | — |