Skip to content

Scale In

MotionMIT
View in Storybook

Scale-up entrance primitive for cards, badges, and modal content.

bun add @otfdashkit/ui

Preview

Scale In
Loading Storybook preview…

Code

import { ScaleIn } from '@otfdashkit/ui'

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

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

Props

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

PropTypeDefaultDescription
childrenrequiredReactNode
delaynumber0
durationnumber