Skip to content
synccn

Shiny Button

Button with a light sweep and a soft glow on hover.

Installation

$ pnpm dlx shadcn@latest add @synccn/shiny-button

First time in this project? Connect synccn with one command.

Usage

import { ShinyButton } from "@/components/ui/shine-border";<ShinyButton>Get started</ShinyButton>

API reference

Generated from the component's TypeScript types, so it always matches the code.

ShinyButton

Button with a light sweep across its surface.

  • children
    React.ReactNode

    Content to render.

  • className
    string

    Extra classes for the root element.

Also accepts every standard <button> attribute, and forwards its ref.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

  • Shows a visible focus ring for keyboard users