Reference · NPL
<npl-mood>
NPL element
You write the mood in the mood attribute. Extra children can carry the tone, the context, and how the agent will approach work in this mood.
Children
-
<npl-mood-tone>how the affect colors delivery. -
<npl-mood-context>what the mood attaches to. -
<npl-mood-approach>the stance the mood implies going forward.
Example
npl-mood.html
source
1
<npl-mood mood="🙂 wistful">
2
<div class="npl-mood-tone">restrained, unhurried</div>
3
<div class="npl-mood-context">draft reply to a cold opener</div>
4
<div class="npl-mood-approach">ask one concrete question</div>
5
</npl-mood>
6
7
<npl-mood mood="🔥 sharp"/>
render
Live render boots with JavaScript — the authored source is alongside.
Source: spec/schema/npl/npl-mood.md