SettleModal

A modal whose content has a tiny scale/settle instead of a generic fade. The panel scales 0.94 -> 1.02 -> 1.0 with a small y travel, then the inner content layers its own gentle settle on top.

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/settle-modal

API Reference

PropTypeDefaultDescription
openbooleanundefinedWhether the modal is open
onClose() => voidundefinedCalled when the modal should close
titleReact.ReactNodeundefinedOptional title rendered at the top
descriptionReact.ReactNodeundefinedOptional secondary description below the title
childrenReact.ReactNodeundefinedMain content area
footerReact.ReactNodeundefinedFooter area, typically action buttons
hideCloseButtonbooleanfalseHide the close (X) button
closeOnBackdropbooleantrueClick on backdrop closes the modal
size'sm' | 'md' | 'lg''md'Maximum width preset