Add the following line inside your _ViewImports.cshtml file:
@addTagHelper *, Dewhitee.TagHelpers
<!-- Primitive messages -->
<hint msg="My hint" />
<error msg="My error message" />
<warn msg="My warning" />
<success msg="Success message"/>
<!-- You can set 'as' attribute to render message in specific way: -->
<hint msg="My hint" as="Callout" />
<error msg="My error" as="Note" />
<!-- 'when' attribute can be specified to set the condition under which tag message will be rendered -->
<warn msg="ATTENTION: ..." when="Model.MyValue is null" />
<!-- In case Modal mode is used - 'modal-id' attribute must be set to the id of a button that triggers this modal: -->
<help-modal-btn modal-id="my-modal-button" />
<hint msg="Some text as the content of a modal" as="Modal" modal-id="my-modal-button" />
If self-closing message tag is not an option *-msg tag helpers can be used instead:
<hint-msg>
My hint message
</hint-msg>
<error-msg>
My error message
</error-msg>
<create-btn />
<delete-btn />
<submit-btn />
<save-btn />
<back-btn route="@Model.PreviousRoute" />
<collapse-btn collapse-id="search" text="Search <i class='fas fs-search'></i>" />
<collapse collapse-id="search">
Some content
</collapse>
<help-modal-btn modal-id="some-help" />
<help msg="Some help text" as="Modal" modal-id="some-help" />
<tabs mode="Horizontal" tabs-id="my-tabs">
<tab-buttons titles="Link 1, Link 2, Link 3"/>
<tab-contents>
<tab-content title="Link 1" active="true">
Link 1 content
</tab-content>
<tab-content title="Link 2">
Link 2 content
</tab-content>
<tab-content title="Link 3">
Link 3 content
</tab-content>
</tab-contents>
</tabs>