Directives
Small attributes that change how an element behaves.
k-if · k-elif · k-else
Medium: 60
:style and :class
k-show and k-html (Auto-Sanitized)
k-show hides me with CSS; k-if would remove me.
k-html renders rich HTML through Kreftjs.cleanHtml() so scripts and event handlers are stripped automatically (open full XSS playground):
Safe bold, italic, and
(onerror stripped!)
k-ref and a custom directive
k-focus is registered in index.html; the first box gets the focus when the page opens.
<kreft-portal>
The dialog is written here but drawn at the end of the page, above everything.