GrowShrinkTag

Pro

GrowShrinkTag 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.

npx @nateui/cli@latest add GrowShrinkTag

Examples

Without Icon

Prefix and Suffix

Custom Style

API

PropDescriptionTypeDefault
valueThe numeric value to display. Positive values show green/success styling, negative values show red/destructive styling.number0
showIconWhether to show the directional arrow icon.booleantrue
prefixContent to display before the value.ReactNode | string—
suffixContent to display after the value.ReactNode | string—
classNameAdditional CSS classes to apply to the tag.string—