A beautifully animated theme toggler that smoothly transitions between light and dark modes using the View Transitions API.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Max-Samson/magicui/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Required CSS
Add the following to your global CSS file:Usage
Props
Additional CSS classes to apply to the button
Duration of the theme transition animation in milliseconds
Features
- Smooth circular reveal animation during theme transitions
- Automatic theme detection and sync with document theme
- Persists theme preference to localStorage
- Uses View Transitions API for modern browsers
- Fully accessible with screen reader support