# Trend delta

> Up and down arrows with tinted gain / loss percentages.

A shadcn/ui block from the [@flx](https://ui.flexnative.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/flx/badge-11).

- Page, with a live preview: https://shadcn.exchange/r/flx/badge-11
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/flx/badge-11-light-3a8319aeb6808be6.png
- Registry item: https://ui.flexnative.com/r/badge-11.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/badge-11.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `badge`

## Files

### `registry/patterns/badge/badge-11.tsx`

```tsx
import { ArrowDownIcon, ArrowUpIcon } from 'lucide-react'

import { Badge } from '@/components/ui/badge'

export function Badge11() {
  return (
    <div className="flex flex-wrap items-center gap-2">
      <Badge className="border-transparent bg-emerald-500/10 text-emerald-600 dark:text-emerald-400">
        <ArrowUpIcon data-icon="inline-start" />
        12.5%
      </Badge>
      <Badge className="border-transparent bg-red-500/10 text-red-600 dark:text-red-400">
        <ArrowDownIcon data-icon="inline-start" />
        3.2%
      </Badge>
    </div>
  )
}
```
