Shimmer Button
Shimmer Button adds a moving border or highlight to a native button.
Practical React example
Highlight one primary action while keeping its label and focus state clear.
Before you copy and paste
Match the imported component’s client or server rendering boundary before using the example. Copy components/magicui/shimmer-button.tsx and its returned support files from the Code tab; preserve the project-relative paths. Include the returned styles: components/magicui/shimmer-button.css.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Highlight one primary action while keeping its label and focus state clear
// Usage adapted from Magic UI's pinned MIT source.
// Copyright (c) Magic UI. See ./LICENSES.md.
'use client';
import { ShimmerButton } from "@/components/magicui/shimmer-button"
export function ComponentExample() {
return (
<ShimmerButton>Shimmer Button</ShimmerButton>
);
}
Usage example adapted from Magic UI's pinned MIT source. Retain the source licence notices when copying.
Use a real action callback or form submission and set type explicitly inside forms. Tune shimmerDuration without compromising the label’s contrast.
Customization
- ShimmerButtonProps.shimmerColor
- Optional; string.
- ShimmerButtonProps.shimmerSize
- Optional; string.
- ShimmerButtonProps.borderRadius
- Optional; string.
- ShimmerButtonProps.shimmerDuration
- Optional; string.
- ShimmerButtonProps.background
- Optional; string.
- ShimmerButtonProps.className
- Optional; string.
- ShimmerButtonProps.children
- Optional; React.ReactNode.
Integration notes
- Include the returned CSS and verify that keyboard focus remains visible over the effect.
- Success and pending state must come from the application’s operation, not the shimmer cycle.
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.