OPtimized components
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 4s

This commit is contained in:
2026-04-26 23:33:55 +02:00
parent 971133d430
commit e3e5082247
15 changed files with 438 additions and 755 deletions

View File

@@ -88,8 +88,9 @@ mount(
```js
const text = $('');
const pass = $('');
mount(
mount([
Input({
type: 'text',
label: 'Username',
@@ -97,6 +98,13 @@ mount(
value: text,
left: Icon('icon-[lucide--user]')
}),
Input({
type: 'password',
label: 'Password',
float: true,
value: pass,
left: Icon('icon-[lucide--lock]')
})],
'#demo-input'
);
```
@@ -168,14 +176,14 @@ mount(
<div id="demo-swap"></div>
```js
const swapOn = $(false);
const isActive = $(false)
mount(
Swap({
value: swapOn,
on: span({ class: 'text-success' }, 'ON'),
off: span({ class: 'text-error' }, 'OFF'),
}),
Swap({ class: 'text-base' }, [
SwapToggle({ value: isActive, class: 'swap-rotate' }),
SwapOn({}, span({ class: 'icon-[lucide--moon]' })),
SwapOff({}, span({ class: 'icon-[lucide--sun]' }))
]),
'#demo-swap'
);
)
```