namds/refactor-base-layout #8

Merged
yen.nguyen merged 27 commits from namds/refactor-base-layout into main 2025-12-15 07:44:38 +00:00
2 changed files with 19 additions and 1 deletions
Showing only changes of commit f3fb70d073 - Show all commits

View File

@ -0,0 +1,18 @@
import { LayoutComponentDefinition, LayoutContext } from "@vibentec/component-map"
export default function VtInput({
nodes,
context,
}: {
nodes: LayoutComponentDefinition
context: LayoutContext
}) {
const props = nodes.config || {}
return (
<input
className={props?.className ?? ""}
type={props?.type ?? "text"}
placeholder={props?.placeholder ?? ""}
/>
)
}

View File

@ -12,7 +12,7 @@ export default function VtText({
const props = nodes.config || {}
return (
<span className={props?.className ?? ""}>
{props?.label && <span>{props.label}</span>}
{props?.label ?? ""}
</span>
)
}