Says something was written to memory, what it was, and how to take it back.
All three, together. A product that remembers silently is a product deciding what it knows about someone without telling them, and the note says the reach out loud: every AI will know it from now on.
role="status", so it is announced without interrupting.
import { MemorySaved } from '@redrob-labs/ui';
| Prop | Type | Notes |
|---|---|---|
label |
React.ReactNode |
|
note |
React.ReactNode |
|
undoLabel |
React.ReactNode |
|
className |
string |
|
children |
React.ReactNode |
What was remembered. |
onUndo |
() => void |
Omit it and the memory cannot be undone here - so only omit it when that is true. |