muddle/modules/amezing/components/crt.spug
2026-10-23 08:53:07 -04:00

11 lines
371 B
Text

props
fontSize?: string
label?: string
content?: string | (() => string | Promise<string>)
pre.crt(style=fontSize ? 'font-size: ' + fontSize + ';' : '' role=label ? 'img' : false aria-label=label ? label : false)
code(aria-hidden=label ? false : true)
span
if typeof content === 'function'
!= await content()
else
!= content ?? ''