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

9 lines
295 B
Text

props
overshoot?: boolean
overshootRow?: boolean
content?: string | (() => string | Promise<string>)
div.overflow-auto(class=overshoot ? 'overshoot' : false class=overshootRow ? 'overshoot-row' : false)
if typeof content === 'function'
!= await content()
else
!= content ?? ''