feat: pages

This commit is contained in:
Max Koon
2025-11-15 18:49:17 -05:00
parent 9834b9518b
commit 641dc25bee
11 changed files with 177 additions and 163 deletions

View File

@@ -14,8 +14,14 @@ export function View({ children, style }: ViewProps) {
? style.flexDirection
: undefined
: undefined;
const flex = style &&
'flex' in style
? typeof style.flex == 'number'
? style.flex
: undefined
: undefined;
return <box backgroundColor={bg} flexDirection={flexDirection}>{children}</box>
return <box backgroundColor={bg} flexDirection={flexDirection} flexGrow={flex}>{children}</box>
}