Intelligent download button that automatically detects the user's operating system and displays customized text and icons for Windows, macOS, and Linux users.
Make it with Workshop
Build your own component with AI
Details
This smart download button transforms your user's experience by automatically adapting to their operating system. It detects whether a visitor is on Windows, macOS, or Linux and displays the appropriate OS icon with customized text, such as "Download for Windows" or "Download for macOS".
Key Features
Automatic OS Detection: Intelligently identifies the user's operating system using the browser's user agent.
Platform-Specific Icons: Uses official OS icons from Simple Icons (Windows, Apple, Linux).
Customizable Text: Set unique button text for each operating system.
Smart Redirects: Routes users to the correct download link based on their detected OS.
Fallback Support: Defaults to the Windows link for unrecognized systems.
Hover Effects: Smooth animations with a lift effect and shadow transitions.
Full Customization: Control colors, padding, border radius, fonts, and spacing.
Accessibility Ready: Includes proper ARIA labels and keyboard navigation support.
Perfect For
Software download pages
App landing pages
Cross-platform tools
Desktop applications
Developer tools and utilities
Use Cases
Desktop app downloads (Electron, native apps)
Development tools and IDEs
Cross-platform software distribution
Browser extensions with OS-specific features
Gaming applications with platform variants
Technical Highlights
TypeScript-powered with full type safety
Uses React hooks for optimal performance
Responsive design that works on all screen sizes
No external dependencies required
SEO-friendly with proper semantic markup
This component eliminates guesswork for users by presenting them with exactly what they need for their operating system, which improves conversion rates and user experience. It automatically shows OS-specific text by default but can be switched to a custom mode for universal messaging. Each OS can also have its own download link, making it perfect for applications with different installers for different platforms.