Skip to content

Commit

Permalink
Update packages/react-dom/src/FadeIn.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Juhyeok Kang <[email protected]>
  • Loading branch information
manudeli and kangju2000 authored Nov 19, 2024
1 parent d4d6c66 commit a743248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-dom/src/FadeIn.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { type CSSProperties, type ComponentPropsWithoutRef, type ElementType } from 'react'
import { useInView } from './useInView'

type FadInBaseProps = {
type FadeInBaseProps = {
delay?: number
duration?: number
timingFunction?: CSSProperties['animationTimingFunction']
}
type FadeInProps<TAs extends ElementType> = {
as?: TAs
} & Omit<ComponentPropsWithoutRef<TAs>, 'as' | keyof FadInBaseProps> &
FadInBaseProps
FadeInBaseProps

export function FadeIn<TAs extends ElementType = 'div'>({
as,
Expand Down

0 comments on commit a743248

Please sign in to comment.