themes-editorial/section_label.templ
Alex Dunmow 1d9a4c8ce6 initial: theme plugin editorial
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/editorial.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:11:28 +08:00

13 lines
428 B
Plaintext

package main
// sectionLabelComponent renders the section label. The visual contract is
// uppercase + small-caps text followed (optionally) by a 1px hairline rule.
templ sectionLabelComponent(data SectionLabelData) {
<div class="editorial-column" data-block="editorial:section_label">
<div class="editorial-section-label">{ data.Label }</div>
if data.Divider {
<hr class="editorial-section-label-rule"/>
}
</div>
}