Skip to content
synccn

Ripple Button

Button with a ripple from the click point.

Installation

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

First 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.

  • variant
    ButtonVariant

    Default "default"

    Visual style, as for Button.

  • size
    ButtonSize

    Size, as for Button.

  • 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.

Components

Helpers

npm packages

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.