UNPKG

@arolariu/components

Version:

A collection of reusable components for React applications, built as ESM & CJS modules with tree shake, minify and bundler optimizations enabled, for the lowest bundle size (import cost)! 😍

14 lines (13 loc) 575 B
import * as React from "react"; import { type HTMLMotionProps, type Transition } from "motion/react"; type FlipDirection = "top" | "bottom" | "left" | "righ"; interface FlipButtonProps extends HTMLMotionProps<"button"> { frontText: string; backText: string; transition?: Transition; frontClassName?: string; backClassName?: string; from?: FlipDirection; } declare const FlipButton: React.ForwardRefExoticComponent<Omit<FlipButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>; export { FlipButton, type FlipButtonProps, type FlipDirection };