New Stat Stats
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 3s

This commit is contained in:
2026-04-27 18:01:15 +02:00
parent d9ccd81cf0
commit 953fae7bbc
7 changed files with 31 additions and 12 deletions

View File

@@ -77,16 +77,13 @@ mount(
<div id="demo-stat"></div>
```js
// Stat is a simple wrapper for the DaisyUI stat component
const Stat = (p, c) => div({ ...p, class: cls('stat', p.class) }, c)
mount(
div({ class: 'stats shadow' },
Stat({ class: 'stat' }, [
div({ class: 'stat-title' }, 'Total Downloads'),
div({ class: 'stat-value' }, '12.5K'),
div({ class: 'stat-desc' }, '21% more than last month')
])
Stats({},
Stat({
title: 'Total Downloads',
value: '12.5K',
desc: '21% more than last month'
})
),
'#demo-stat'
)

File diff suppressed because one or more lines are too long