Installation
Install Logo Soup from npm using your preferred package manager:Basic Usage (React)
The fastest way to get started is with the React component. ImportLogoSoup and pass it an array of logos:
Complete Example
<LogoSoup> component handles everything:
- Loading and analyzing each logo
- Detecting content boundaries
- Normalizing sizes based on visual weight
- Aligning logos for visual harmony
- Rendering with proper spacing
Customization
You can customize the appearance and behavior with props:See the Configuration page for all available options and their effects.
Using the Hook
For custom layouts, use theuseLogoSoup hook directly:
Integration with Next.js
Use therenderImage prop to integrate with Next.js Image component:
What You Get
After normalization, each logo receives:normalizedWidth— Computed width in pixelsnormalizedHeight— Computed height in pixelsvisualCenter— Coordinates for alignment (x and y offsets)bounds— Original bounding box dimensionsdensity— Measured visual weight
Other Frameworks
Logo Soup supports all major frameworks with the same simple API:Vue
Use the
useLogoSoup composable with reactive dependenciesSvelte
Use
createLogoSoup with Svelte 5 runesSolid
Use the
useLogoSoup primitive with reactive trackingAngular
Use
LogoSoupService with Angular signalsjQuery
Use the
$.fn.logoSoup pluginVanilla JS
Use the core
createLogoSoup() engine directlyNext Steps
Configuration
Learn about all available options
React Deep Dive
Explore advanced React patterns
How It Works
Understand the normalization algorithm
API Reference
Complete API documentation