adapt new Input
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 3s

This commit is contained in:
2026-04-23 13:22:49 +02:00
parent 59e6d972a8
commit e842ed8041
61 changed files with 2553 additions and 2758 deletions

View File

@@ -54,7 +54,7 @@ import "sigpro-ui/css";
const App = () => {
const show = $(false);
return Button(
return button(
{
class: "btn-primary",
onclick: () => show(true)
@@ -77,7 +77,7 @@ import "sigpro-ui/css";
// All components (Button, Table, Input, Alert, etc.) are now globally available.
// No need to import anything else!
const myApp = () => Table({ items: [], columns: [] });
const myApp = () => table({ items: [], columns: [] });
```
---
@@ -91,10 +91,10 @@ import "sigpro-ui/css";
const App = () => {
const count = $(0);
return Div({ class: "p-10 flex flex-col gap-4" }, [
return div({ class: "p-10 flex flex-col gap-4" }, [
H1({ class: "text-2xl font-bold" }, "Welcome to SigPro UI"),
Button({
button({
class: "btn-primary",
onclick: () => {
count(c => c + 1);
@@ -148,7 +148,7 @@ import { tt, Locale } from "sigpro-ui";
Locale('en');
// Use translations
const closeButton = Button({}, tt('close')());
const closeButton = button({}, tt('close')());
```
---