Rendyn

Component library

189 components

Interaction

Shine Border

Shine Border provides border width, duration and one or more shine colors.

Interactive exampleReact Tailwind CSS

Practical React example

Add a slow decorative border to one featured content panel.

Before you copy and paste

Match the imported component’s client or server rendering boundary before using the example. Copy components/magicui/shine-border.tsx and its returned support files from the Code tab; preserve the project-relative paths. Include the returned styles: components/magicui/shine-border.css.

Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.

Add a slow decorative border to one featured content panel

// Usage adapted from Magic UI's pinned MIT source.
// Copyright (c) Magic UI. See ./LICENSES.md.
'use client';

import { ShineBorder } from "@/components/magicui/shine-border"

export function ComponentExample() {
  return (
    <div className="relative h-[500px] w-full overflow-hidden">
  <ShineBorder />
</div>
  );
}

Usage example adapted from Magic UI's pinned MIT source. Retain the source licence notices when copying.

Position the border within a bounded card and include the returned CSS. Choose shineColor against the card’s real surface colors.

Customization

ShineBorderProps.borderWidth
Optional; number. Width of the border in pixels
ShineBorderProps.duration
Optional; number. Duration of the animation in seconds
ShineBorderProps.shineColor
Optional; string | string[]. Color of the border, can be a single color or an array of colors

Integration notes

  • Do not reuse the border animation as the only selected or error indicator.
  • Check focus-ring visibility and reduced motion around interactive card content.

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.

Better with your agent

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.

Connect to MCP