Message
Provide brief feedback about an operation.
Messages and updates
Live previewMessages and updates
basic.tsx
Multiple messages
When a message closes, those below it move up smoothly. Content of different heights collapses using its actual space.
Live previewMultiple messages
stack.tsx
useMessage API
MessageApi
MessageOptions
Message API
Types
Import types when defining reusable component props or assembling options.
Usage notes
Prefer useMessage. Update a loading message with its key to show the result. Timers pause while a message is hovered or focused and resume with the remaining time.
Message also supports declarative rendering; set open=false after onClose. Place contextHolder inside ConfigProvider so messages follow its theme and language.