ComponentsProNew

Linear Modal

A card grows into a large window on click: its image, title and subtitle glide into place. Close it with the cross, a click on the backdrop or Esc.

Customize

accentColor
glowColor
highlightColor

Based on Linear Modal (MIT license) ยท Terms of use

Props

11 properties
PropertyTypeDefaultDescription
childrenReactNodeโ€”A DialogTrigger card and a DialogContainer with DialogContent.
bouncenumber0.15Spring bounce of the card-to-window morph. Zero means no overshoot.
durationnumber0.45Morph duration in seconds.
transitionTransitionโ€”Your own full motion transition. Replaces bounce and duration.
DialogContainer.overlayClassNamestringโ€”Classes of the backdrop behind the window.
DialogDescription.disableLayoutAnimationbooleanโ€”The text just fades in instead of morphing from the card.
DialogImage.srcstringโ€”Image that morphs from the card into the window.
accentColorstring"#ffffff"Main colour: soft glow under the open dialog.
glowColorstring"rgba(115,115,115,0.55)"Tint rising from the edges of the dark backdrop behind the dialog.
highlightColorstring"rgba(255,255,255,0.12)"Thin light edge along the top of the dialog.
classNamestringโ€”Extra classes.

Dependencies

4 required packages

npm install motion lucide-react clsx tailwind-merge

Related components

View all