Merge feat/component-sequential: resolve conflicts in component/index.ts

This commit is contained in:
glm-5.1 committed 2026-05-21 20:51:17 +00:00
commit e83d340666
3 files changed
+81 -2

No files matched your search

+3 -1
View File
@@ -1,2 +1,4 @@
export { Parallel } from "./parallel.js";
export type { ParallelProps } from "./parallel.js";
export type { ParallelProps } from "./parallel.js";
export { Sequential } from "./sequential.js";
export type { SequentialProps } from "./sequential.js";
+18 -1
View File
@@ -1 +1,18 @@
export {};
import type { UElement, UNode } from "@alkdev/ujsx";
export interface SequentialProps {
id?: string;
}
function Sequential(props: SequentialProps & { children?: UNode[] }): UElement {
const { id, children } = props;
return {
type: "sequential",
props: id !== undefined ? { id } : {},
children: children ?? [],
};
}
Sequential.displayName = "Sequential";
export { Sequential };