Skip to content

Fade In

MotionMIT
View in Storybook

Fade-in entrance primitive with configurable delay and duration.

bun add @otfdashkit/ui

Preview

Fade In
Loading Storybook preview…

Code

import { FadeIn } from '@otfdashkit/ui'

export function Example() {
  return (
    <FadeIn>
      <div className="rounded-lg border border-border bg-card p-6">
        <p className="text-foreground">This content fades in on mount</p>
      </div>
    </FadeIn>
  )
}

Free with the SDK. This pattern ships in @otfdashkit/ui under the MIT license.

Props

Props declared in the FadeIn source. Inherited HTML attributes are not listed.

PropTypeDefaultDescription
childrenrequiredReactNode
delaynumber0
durationnumber