Trend Chip
Label the direction and magnitude of a change.
Orders +8.4% change in ordersReturns -1.2% change in returnsLeads 0% change in leads
HTML
<div class="rl-insight-trends"><span>Orders <span class="rl-trend" data-direction="up"><span aria-hidden="true">↗</span> +8.4%<span class="rl-insight-sr"> change in orders</span></span></span><span>Returns <span class="rl-trend" data-direction="down"><span aria-hidden="true">↘</span> -1.2%<span class="rl-insight-sr"> change in returns</span></span></span><span>Leads <span class="rl-trend" data-direction="flat"><span aria-hidden="true">→</span> 0%<span class="rl-insight-sr"> change in leads</span></span></span></div>Use in your app
Copy these tags into your page head once. Serve the files at the paths shown, then add the example’s template to your page.
Page assets
<link rel="stylesheet" href="/mero.css">
<link rel="stylesheet" href="/mero-insights.css">
<script defer src="/mero.js"></script>
<script defer src="/mero-insights.js"></script>