Skip to content

Instantly share code, notes, and snippets.

@lukaszhanusik
Last active August 11, 2021 21:48
Show Gist options
  • Save lukaszhanusik/83f4d4719a6443b6ad0a01bbdca96fd7 to your computer and use it in GitHub Desktop.
Save lukaszhanusik/83f4d4719a6443b6ad0a01bbdca96fd7 to your computer and use it in GitHub Desktop.
LWC Scope Notifications Receipies
<!-- warning -->
<c-base-scoped-notification if:true={salesforceMergeFields}
variant="warning"
has-round-borders
heading={labels.templatePreviewSalesforceMergeFieldsNoticeHeading}
details={labels.templatePreviewSalesforceMergeFieldsNotice}>
</c-base-scoped-notification>
<!-- info -->
<c-base-scoped-notification if:false={templateMergeFields}
variant="info"
has-round-borders
heading={labels.templatePreviewNoMergeFieldsNoticeHeading}
details={labels.templatePreviewNoMergeFieldsNotice}>
</c-base-scoped-notification>
<!-- with slot -->
<c-base-scoped-notification if:true={templateMergeFieldErrors}
variant="error"
has-round-borders
is-expanded
>
<c-base-error-message
variant="inline"
friendly-message={labels.templatePreviewError}
errors={templateMergeFieldErrors}>
</c-base-error-message>
</c-base-scoped-notification>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment