Skip to content
h v3.13.3
Search the docs
Find a component, section or page.

Interactive hover button

A call-to-action button with a spinning edge and a fill that swells on hover.

Installation

pnpm add @heyramzi/ui

Usage

import { InteractiveHoverButton } from "@heyramzi/ui/effects/interactive-hover-button";

Keyboard and accessibility

Key Does
Space Enter Presses the button. With href it's a link, and only Enter follows it.
  • The duplicate label and arrow that slide in on hover are hidden from screen readers.
  • With reduced motion on, the spinning edge stops.

API reference

href string
type "button" | "submit"
Default "button"
`submit` posts the form the button sits in.
disabled boolean
Default false
size "default" | "sm"
Default "default"
`sm` is 40px for a condensed bar; under a thumb both are 44px.
tone "ink" | "coral"
Default "ink"
beam boolean
Default true
dot boolean
Default true
class string
onclick (event: MouseEvent) => void
children required import("svelte").Snippet
Prop Type Default
href string
type

`submit` posts the form the button sits in.

"button" | "submit" "button"
disabled boolean false
size

`sm` is 40px for a condensed bar; under a thumb both are 44px.

"default" | "sm" "default"
tone "ink" | "coral" "ink"
beam boolean true
dot boolean true
class string
onclick (event: MouseEvent) => void
children required import("svelte").Snippet