Controls & Inputs

Shine Button

반복되는 광택 마스크와 탄성 있는 탭 피드백을 가진 버튼입니다.

Preview

action control

Shine Button

hover for a soft shine

Installation

bash
Copied
1pnpm dlx shadcn@latest add https://ryong.dev/r/shiny-button.json

Code

typescript
Copied
1import { ShinyButton } from "@/components/shiny-button"23export default function Example() {4  return <ShinyButton>Shiny Button</ShinyButton>5}

Props

PropTypeDefaultDescription
childrenReact.ReactNode-Content rendered inside the component.
classNamestring-Additional classes merged onto the component.
shineColorstring"currentColor"Color used by the moving shine mask.
...propsHTMLAttributes<HTMLElement> & MotionProps-Motion button props.

Reference

Reference Shine Button