From eb35514e1d1260dab1e9b067e9dcfaa68aec323f Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 2 Aug 2024 03:52:10 +0200 Subject: [PATCH] feat(NcNoteCard): Add `text` prop to pass the content of the note card Signed-off-by: Ferdinand Thiessen --- src/components/NcNoteCard/NcNoteCard.vue | 43 +++++++++++++++--------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/src/components/NcNoteCard/NcNoteCard.vue b/src/components/NcNoteCard/NcNoteCard.vue index cbeb3a7571..b11d2e2481 100644 --- a/src/components/NcNoteCard/NcNoteCard.vue +++ b/src/components/NcNoteCard/NcNoteCard.vue @@ -14,30 +14,31 @@ available in four versions: When using an error type, +### Usage + ```vue @@ -69,7 +70,12 @@ When using an error type,

{{ heading }}

- + + +

+ {{ text }} +

+
@@ -100,6 +106,13 @@ export default { type: String, default: '', }, + /** + * The message text of the note card + */ + text: { + type: String, + default: '', + }, }, computed: { shouldShowAlert() {