feat: add table

This commit is contained in:
Max Koon
2025-11-14 23:06:12 -05:00
parent 5b14b4e7a4
commit 9834b9518b
7 changed files with 163 additions and 32 deletions

View File

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