Shiny Button
Shiny Button wraps ordinary button-like content in a motion treatment.
Practical React example
Add a restrained shine treatment to a clearly labelled action.
Before you copy and paste
Match the imported component’s client or server rendering boundary before using the example. Copy components/magicui/shiny-button.tsx and its returned support files from the Code tab; preserve the project-relative paths.
Listed package dependencies: motion.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Add a restrained shine treatment to a clearly labelled action
// Usage adapted from Magic UI's pinned MIT source.
// Copyright (c) Magic UI. See ./LICENSES.md.
'use client';
import { ShinyButton } from "@/components/magicui/shiny-button"
export function ComponentExample() {
return (
<ShinyButton>Shiny Button</ShinyButton>
);
}
Usage example adapted from Magic UI's pinned MIT source. Retain the source licence notices when copying.
Keep the actual click handler and pending state connected to the application operation. Verify the rendered element’s button semantics in the pinned source.
Customization
- ShinyButtonProps.children
- Required; React.ReactNode.
- ShinyButtonProps.className
- Optional; string.
Integration notes
- A visual shine is not a loading indicator or an operation result.
- Inside forms, set the appropriate button type and preserve a visible focus state.
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.