All tag helpers
Each tag helper is used either as its own element, such as <our-svg>, or as an attribute you add to any HTML element, such as our-if. The badge shows the package version it arrived in. A Coming badge means it’s on the development branch but not yet in a stable release on NuGet.
| Tag helper | Used as | What it does | Since |
|---|---|---|---|
our-active-class | Attribute | Adds a CSS class to a link when it points to the current page or one of its ancestors. | Added in v0.6.0 |
<our-bytes> | Element | Shows a number of bytes, or a media item's file size, as a readable size such as 1.1 MB. | Coming in v2.1.0 |
<our-cache> | Element | ASP.NET Core's cache tag helper, turned off in preview and debug, and cleared when content is published. | Added in v0.8.0 |
our-controller | Attribute | Posts a plain HTML form to an Umbraco surface controller, instead of Html.BeginUmbracoForm. | Added in v0.1.0 |
<our-dictionary> | Element | Outputs a dictionary translation for the current page's language, with fallbacks. | Added in v0.1.0 |
<our-edit-link> | Element | Shows a link to edit the current page in the backoffice, only to users who can edit content. | Added in v0.4.0 |
<our-fallback> | Element | Outputs a property using Umbraco's fallback modes, or the content inside the tag when there's no value. | Added in v0.2.0 |
<our-hreflang> | Element | Outputs the hreflang alternate links for each language version of the current page. | Coming in v2.1.0 |
our-if | Attribute | Renders an element and its children only when an expression is true. | Added in v0.1.0 |
<our-img> | Element | Renders a fast, responsive <img> or <picture> from a media item or file, with crops and lazy loading. | Added in v1.0.0 |
<our-lang-switcher> | Element | Renders a language switcher for every language and domain, with a Mustache template for the markup. | Added in v0.1.0 |
<our-link> | Element | Renders a link from a Multi URL Picker, with an optional fallback when no link is set. | Added in v0.7.0 |
our-member-include | Attribute | Shows or hides an element depending on the logged-in member's member groups. | Added in v0.3.0 |
our-self-host | Attribute | Downloads a third-party script, stylesheet or image once and serves it from your own site. | Added in v1.2.0 |
<our-svg> | Element | Inlines an SVG file or media item into the page, with caching, a viewBox fix and script removed. | Added in v0.1.0 |
our-text-if | Attribute | Fills an empty element with a value, or leaves the element out when the value is empty. | Coming in v2.1.0 |
our-user-include | Attribute | Shows or hides an element depending on the logged-in backoffice user's user groups. | Added in v0.5.0 |
<our-version> | Element | Prints the version number of your website project, or of any loaded assembly. | Added in v0.2.0 |
Looking for <our-macro>? It was removed in version 2.0.0. See Removed tag helpers.