Install and set up AdMesh UI components for React applications
Install the Package
Import Components
Use in Your App
npm
Yarn
pnpm
Prop | Type | Required | Description |
---|---|---|---|
recommendations | Recommendation[] | ✅ | Array of recommendation objects |
layout | string | ❌ | Layout type: auto , grid , list , citation |
onRecommendationClick | function | ❌ | Click handler: (adId, admeshLink) => void |
className | string | ❌ | Custom CSS class |
style | object | ❌ | Inline styles |
showPricing | boolean | ❌ | Show pricing information (default: true) |
showFeatures | boolean | ❌ | Show features list (default: true) |
maxItems | number | ❌ | Maximum recommendations to display |
Auto Layout
Grid Layout
List Layout
Citation Layout
Component Not Rendering
Styling Issues
Click Handling Not Working