feat(layout): add full-height flex layout and FullWidth component

This commit is contained in:
2026-03-06 18:48:13 -06:00
parent f4ad0bd9de
commit e38871879c
2 changed files with 16 additions and 0 deletions

View File

@@ -20,6 +20,9 @@ export default defineConfig({
globalCss: {
body: {
display: 'flex',
flexDirection: 'column',
minHeight: '100vh',
backgroundColor: 'neutral.1',
color: 'neutral.12',
fontFamily: "'Roboto Variable', sans-serif",

View File

@@ -0,0 +1,13 @@
import { css, cx } from '@styled-system/css'
import type { FC, ReactNode } from 'react'
export interface FullWidthProps {
className?: string
children?: ReactNode
}
const FullWidth: FC<FullWidthProps> = ({ className, children }) => {
return <main className={cx(css({ flexGrow: 1 }), className)}>{children}</main>
}
export default FullWidth