mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: revamp
This commit is contained in:
1 parent
468308ad22
commit
e3d69ab83c
4 files changed
+137
-198
No files matched your search
@@ -4,6 +4,8 @@ import { ComponentProps } from 'react';
|
||||
type PageWrapperProps = FlexProps & {
|
||||
color?: ComponentProps<typeof Theme>['accentColor'];
|
||||
size?: number | string;
|
||||
noPadding?: boolean;
|
||||
noMaxWidth?: boolean;
|
||||
};
|
||||
|
||||
export default function PageWrapper({
|
||||
@@ -11,6 +13,8 @@ export default function PageWrapper({
|
||||
color,
|
||||
size = 800,
|
||||
children,
|
||||
noPadding = false,
|
||||
noMaxWidth = false,
|
||||
...props
|
||||
}: PageWrapperProps) {
|
||||
return (
|
||||
@@ -27,9 +31,9 @@ export default function PageWrapper({
|
||||
gap="4"
|
||||
style={{
|
||||
width: '100%',
|
||||
maxWidth: size,
|
||||
maxWidth: noMaxWidth ? undefined : size,
|
||||
margin: 'auto',
|
||||
padding: 16,
|
||||
padding: noPadding ? 0 : 16,
|
||||
boxSizing: 'border-box',
|
||||
flex: 1,
|
||||
...style,
|
||||
|
||||
Reference in new issue
Block a user