SemText

Reference · NPL

<npl-mood>

NPL element

PromptLingo reference ↗

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.

Shows a mood with an emoji, plus an optional note on its tone. 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. required. One emoji followed by an optional qualifier string, whitespace-separated (`"🙂 wistful"`); a lone emoji is valid. Displayed by `.npl-mood-chip` and mirrored to `data-mood` (dual-form contract; the mirror is deferred past parse via afterParse so a sem-source snapshot never sees runtime writes). per the global attribute catalog (conventions.md §2) per the global attribute catalog (conventions.md §2) per the global attribute catalog (conventions.md §2)

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