Installation
$ pnpm dlx shadcn@latest add @synccn/ripple-buttonFirst time in this project? Connect synccn with one command.
Usage
import { RippleButton } from "@/components/ui/ripple-button";<RippleButton>Click me</RippleButton>API reference
Generated from the component's TypeScript types, so it always matches the code.
RippleButton
Button that emits a ripple from the point of the click.
PropTypeDescription
- variant
ButtonVariantDefault
"default"Visual style, as for Button.
- size
ButtonSizeSize, as for Button.
- children
React.ReactNodeContent to render.
- className
stringExtra 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.
Components
- Button for
buttonVariants
Helpers
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
Accessibility
From the source
Read from this component's code when the site builds, so it can't drift.
No ARIA roles, key handling or motion settings in its source. It renders plain elements, so its accessibility comes from the content and labels you give it.
More motion
MarqueeEndless scrolling row or column that pauses on hover.Number TickerCounts up to a number when it scrolls into view.TypewriterTypes and deletes a list of phrases.Shimmer TextA light sweep across text for loading moments.Word RotateCycles words with a vertical slide.Text ScrambleCharacters scramble and resolve left to right.