mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-30 08:34:54 +00:00
75 lines
1.7 KiB
JSON
75 lines
1.7 KiB
JSON
{
|
|
"id": "page-header-wrapper",
|
|
"type": "div",
|
|
"bindings": {
|
|
"className": {
|
|
"source": "className",
|
|
"transform": "const baseClass = 'flex items-start justify-between mb-6'; return data ? `${baseClass} ${data}` : baseClass"
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "page-header-content",
|
|
"type": "div",
|
|
"bindings": {
|
|
"className": {
|
|
"source": null,
|
|
"transform": "'space-y-1'"
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "page-header-title",
|
|
"type": "h1",
|
|
"bindings": {
|
|
"className": {
|
|
"source": null,
|
|
"transform": "'text-3xl font-bold tracking-tight'"
|
|
},
|
|
"children": {
|
|
"source": "title",
|
|
"transform": "data"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "page-header-description",
|
|
"type": "p",
|
|
"bindings": {
|
|
"className": {
|
|
"source": null,
|
|
"transform": "'text-muted-foreground'"
|
|
},
|
|
"children": {
|
|
"source": "description",
|
|
"transform": "data"
|
|
},
|
|
"_if": {
|
|
"source": "description",
|
|
"transform": "!!data"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "page-header-actions",
|
|
"type": "div",
|
|
"bindings": {
|
|
"className": {
|
|
"source": null,
|
|
"transform": "'flex gap-2'"
|
|
},
|
|
"children": {
|
|
"source": "actions",
|
|
"transform": "data"
|
|
},
|
|
"_if": {
|
|
"source": "actions",
|
|
"transform": "!!data"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|