Components

BaseNotes

Internal notes on a record, with a field to add one and a delete button on each.

components/ui/BaseNotes.vue
View in the demo

Example

Notes
Prefers delivery in the morning.Laura Méndez

Put it in a BaseCard on a detail page. It only renders and emits: the module stores the notes (add with the text, remove with the id) and passes them back newest first. Times are relative and appear after mount, so the server and the client render the same HTML. The texts default to notes.* in locales/<code>/common.json; pass your own to change them. The customer page uses it.

API

Props

Name
Type
Default
Description
notes
required
BaseNote[]—The notes { id, text, author?, at? }, newest first; at (an ISO date) shows as a relative time after mount.
placeholderstring—The placeholder of the new note field.
labelstring—The accessible name of the new note field.
add-textstring—The text of the add button.
remove-textstring—The tooltip and accessible name of each delete button.
empty-textstring—The sentence shown while there are no notes.
readonlybooleanfalseHides the field and the delete buttons.

Events

Name
Payload
Description
@add[text: string]A new note's trimmed text; the field empties after it.
@remove[id: string]The id of the note to delete.
© 2026 melsami UI.
Developer documentation for melsami UI.