Dex Grid
DexGrid
The DexGrid component displays a responsive grid of decentralized exchanges (DEXs) on Cardano, with transaction statistics and rankings. It automatically filters apps tagged with dex and sorts them by transaction volume.
Basic Usage
import DexGrid from '@site/src/components/DexGrid';
<DexGrid />
Live Preview:
Minswap Dex
Minswap is a multi-pool decentralized exchange on Cardano.
DexHunter
DexHunter is a decentralized exchange aggregator with real-time alerts and an easy to use interface.
MuesliSwap
MuesliSwap is a new decentralized exchange (DEX) operating on the Smart Bitcoin Cash blockchain and Cardano.
Danogo
Danogo is a yield aggregator that provides lending and borrowing, obtaining optimized rates by combining data from multiple Cardano protocols.
More DEXes
Explore 8 more decentralized exchanges
Props
| Prop | Type | Default | Description |
|---|---|---|---|
limit | number | null | Maximum number of DEXs to display. Shows all if not specified. |
showRank | boolean | true | Whether to display rank badges (#1, #2, etc.) on DEX cards. |
showStats | boolean | true | Whether to display transaction statistics on DEX cards. |
gridTitle | string | null | Optional title to display above the grid. |
Features
Automatic Ranking
DEXs are automatically ranked by their 30-day transaction volume:
- Top 3 DEXs get highlighted rank badges
- Ranking is based on real on-chain transaction data
- DEXs without transaction data appear after ranked ones (alphabetically)
Transaction Statistics
Each DEX card displays:
- 30-day transaction count
- Visual rank badge for top performers
- Bar chart icon for quick recognition
Responsive Grid
- Desktop: Multi-column layout (auto-fills based on screen width)
- Mobile: Single column for optimal readability
- Cards maintain consistent height and spacing
Icon Support
DEXs can display custom logos via the icon field in apps.js:
- Supports SVG, PNG, WebP, JPEG
- Falls back to initial letter badge if no icon provided
Examples
Top 4 DEXs with Title
<DexGrid
limit={4}
gridTitle="Top Cardano DEXs"
/>
Top Cardano DEXs
Minswap Dex
Minswap is a multi-pool decentralized exchange on Cardano.
DexHunter
DexHunter is a decentralized exchange aggregator with real-time alerts and an easy to use interface.
MuesliSwap
MuesliSwap is a new decentralized exchange (DEX) operating on the Smart Bitcoin Cash blockchain and Cardano.
Danogo
Danogo is a yield aggregator that provides lending and borrowing, obtaining optimized rates by combining data from multiple Cardano protocols.
More DEXes
Explore 8 more decentralized exchanges
Without Rankings
Useful for showcasing DEXs without emphasizing competitive ranking:
<DexGrid
limit={6}
showRank={false}
/>
Minswap Dex
Minswap is a multi-pool decentralized exchange on Cardano.
DexHunter
DexHunter is a decentralized exchange aggregator with real-time alerts and an easy to use interface.
MuesliSwap
MuesliSwap is a new decentralized exchange (DEX) operating on the Smart Bitcoin Cash blockchain and Cardano.
Danogo
Danogo is a yield aggregator that provides lending and borrowing, obtaining optimized rates by combining data from multiple Cardano protocols.
WingRiders
The DEX on Cardano. Native and fast AMM decentralized exchange platform.
Genius Yield
All-in-one platform, that combines an order book DEX with an automated yield optimizer.
More DEXes
Explore 6 more decentralized exchanges
Without Statistics
Clean display focusing only on DEX information:
<DexGrid
limit={4}
showStats={false}
/>
DexHunter
DexHunter is a decentralized exchange aggregator with real-time alerts and an easy to use interface.
Visit DEXMuesliSwap
MuesliSwap is a new decentralized exchange (DEX) operating on the Smart Bitcoin Cash blockchain and Cardano.
Visit DEXDanogo
Danogo is a yield aggregator that provides lending and borrowing, obtaining optimized rates by combining data from multiple Cardano protocols.
Visit DEXMore DEXes
Explore 8 more decentralized exchanges
All DEXs (No Limit)
<DexGrid />
This displays all available DEXs in the ecosystem, sorted by transaction volume.
How It Works
Filtering & Sorting
- Filters all apps with the
dextag fromapps.js - Sorts by transaction count (descending)
- Assigns DEX-specific ranks (1, 2, 3, etc.)
- Applies limit if specified
- Displays "More DEXes" card when limited
Transaction Data Matching
The component uses the statsLabel field from apps.js to match DEXs with their transaction data:
{
title: "Minswap Dex",
icon: "/img/app-icons/minswap.svg",
statsLabel: "minswap", // Matches label in app-stats.json
tags: ["dex", "token"],
// ...
}
See the Transaction Rankings Guide for details on how transaction data is collected and how to get your DEX tracked.
Customization
Adding DEX Icons
- Place your logo in
/static/img/app-icons/ - Add the
iconfield to your app inapps.js:icon: "/img/app-icons/your-dex.svg"
Transaction Data
To display transaction statistics for your DEX:
- Add the
statsLabelfield to your app entry - Ensure the label matches your entry in
/src/data/app-stats.json - See Transaction Rankings Guide
"More DEXes" Card
When using the limit prop, a special card appears at the end of the grid:
- Shows the count of remaining DEXs not displayed
- Links to
/apps?tags=dexto view all DEXs - Matches the design of DEX cards for consistency
Mobile Optimization
The grid automatically adjusts for mobile devices:
- Desktop: Multi-column grid (minimum 280px per card)
- Tablet: 2-3 columns depending on screen width
- Mobile: Single column for optimal readability
- Cards maintain consistent padding and spacing across all breakpoints
Integration Example
Using DexGrid on a custom page:
---
title: Cardano DEX Ecosystem
---
import DexGrid from '@site/src/components/DexGrid';
# Decentralized Exchanges on Cardano
Explore the growing ecosystem of DEXs on Cardano, ranked by real transaction volume.
<DexGrid
limit={8}
gridTitle="Top DEXs by Volume"
/>
[View All DEXs →](/apps?tags=dex)
Related Components
- AppList - Compact list component for categorized apps
- Apps Page - Full app directory with filtering
Technical Notes
- Component sources apps from
/src/data/apps.js - Transaction data from
/src/data/app-stats.json - Ranking is DEX-specific (not global app ranking)
- Handles missing icons gracefully with fallback badges
- Supports both
require()and string URL paths for icons