This commit is contained in:
10
Readme.md
10
Readme.md
@@ -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')());
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user