Skip to content

Releases: fineanmol/Annoying-submit-button

@fineanmol/annoying-submit-button v1.0.0

10 Apr 15:52

Choose a tag to compare

@fineanmol/annoying-submit-button v1.0.0

React submit button that slides away from the cursor on hover — until the form is valid. The classic frustrating-UX component, packaged properly.

Install

npm install @fineanmol/annoying-submit-button

Usage

import AnnoyingSubmitButton from "@fineanmol/annoying-submit-button"
import "@fineanmol/annoying-submit-button/style.css"

<AnnoyingSubmitButton isValid={formIsValid}>
  Submit
</AnnoyingSubmitButton>

What's in this release

  • CJS + ESM dual output via Rollup
  • CSS stylesheet via style.css export
  • React 18+ peer dependency
  • isValid prop to control evasion behavior
  • Accepts custom children, className, and style

npm: https://www.npmjs.com/package/@fineanmol/annoying-submit-button