BrowserRender

View Source

NOTE: Introduced feature in v0.4.1.

NOTE: This feature is renderless, meaning it does not render anything extra to the DOM.

BrowserRender disables rendering of child content that either doesn't work in a SSR environment or doesn't make sense there. e.g. <canvas> rendering

USAGE: REPL renders in your Browser, so this feature will always render the content.

<script>
    import {BrowserRender} from "@kahi-ui/framework";
</script>

<BrowserRender>
    This will only render on the Browser.
</BrowserRender>

Imports

<script>
    import {BrowserRender} from "@kahi-ui/framework";
</script>

Slots

BrowserRender

Name Description Types
default Default unnamed slot.
{}