Cool Mode
Cool Mode attaches a particle effect around its child interaction.
Practical React example
Add a small decorative particle burst to an otherwise usable button.
Before you copy and paste
Match the imported component’s client or server rendering boundary before using the example. Copy components/magicui/cool-mode.tsx and its returned support files from the Code tab; preserve the project-relative paths.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Add a small decorative particle burst to an otherwise usable button
// Usage adapted from Magic UI's pinned MIT source.
// Copyright (c) Magic UI. See ./LICENSES.md.
'use client';
import { CoolMode } from "@/components/magicui/cool-mode"
export function ComponentExample() {
return (
<CoolMode>
<button>Click me</button>
</CoolMode>
);
}
Usage example adapted from Magic UI's pinned MIT source. Retain the source licence notices when copying.
Keep the child as a normal labelled button and limit particleCount. Replace any sample particle asset with one you have permission to serve.
Customization
- CoolModeProps.children
- Required; ReactNode.
- CoolModeProps.options
- Optional; CoolParticleOptions.
Integration notes
- The effect must not intercept the intended action or hide its focus state.
- Test reduced motion and clean-up when the button’s containing view unmounts.
Component source: Magic UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.
Give your agent taste.
The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.
All components are free. Sign up only to connect MCP.