Modal Cards

Expandable cards that open into full-screen modals

modal-cards-tw
Mountain Vista

Mountain Vista

Ocean Waves

Ocean Waves

Forest Path

Forest Path

Customize

Animation

Modal Behavior

Appearance

Props

cardsCardData[]

Array of card data to display (id, imageUrl, title, description, gradientColor)

Default:defaultCards
classNamestring

Additional CSS classes for the container

Default:""
gradientColorstring

Default gradient color for all cards (can be overridden per card)

Default:"#6366f1"
animationSpeed"slow" | "normal" | "fast" | "none"

Animation speed preset controlling all animation timings

Default:"normal"
springStiffnessnumber

Override spring stiffness for animations (affects bounce/snap)

Default:undefined
springDampingnumber

Override spring damping for animations (affects smoothness)

Default:undefined
animationVariant"scale" | "fade" | "slide"

Animation variant for modal entry (scale uses layoutId morphing)

Default:"scale"
closeOnBackdropClickboolean

Close modal when clicking the backdrop

Default:true
closeOnEscapeboolean

Close modal when pressing the Escape key

Default:true
showCloseButtonboolean

Show close button (×) in the modal

Default:true
ariaLabelstring

Aria label for modal accessibility

Default:"Card details modal"
backdropGradientPositionstring

Position of backdrop radial gradient center

Default:"50% 10%"
modalClassNamestring

Custom CSS classes for the modal container

Default:""
backdropClassNamestring

Custom CSS classes for the backdrop

Default:""