Skip to content
Discussion options

You must be logged in to vote

For those who may encounter the same issue, use this component instead.

"use client"

import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react"
import {
  AnimatePresence,
  motion,
  type Target,
  type TargetAndTransition,
  Transition,
  type VariantLabels,
} from "motion/react"
import { cn } from "@/lib/utils"

export interface RotatingTextRef {
  next: () => void
  previous: () => void
  jumpTo: (index: number) => void
  reset: () => void
}

export interface RotatingTextProps extends Omit<
  React.ComponentPropsWithoutRef<typeof motion.span>,
  "children" | "transition" | "initial" | "animate" | "exit"
> {
  texts

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Toshimichi0915
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
help
Labels
None yet
1 participant