mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: better layout
This commit is contained in:
1 parent
ca39b8e215
commit
4b2367699a
3 files changed
+464
-475
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import { Flex, FlexProps, Theme } from '@radix-ui/themes';
|
||||
import { ComponentProps } from 'react';
|
||||
import { RadixSize } from '../app/tools/embed/types';
|
||||
|
||||
type PageWrapperProps = FlexProps & {
|
||||
color?: ComponentProps<typeof Theme>['accentColor'];
|
||||
@@ -7,6 +8,7 @@ type PageWrapperProps = FlexProps & {
|
||||
noMaxWidth?: boolean;
|
||||
containerProps?: ComponentProps<typeof Theme>;
|
||||
noFlex1?: boolean;
|
||||
padding?: RadixSize;
|
||||
};
|
||||
|
||||
export default function PageWrapper({
|
||||
@@ -17,6 +19,7 @@ export default function PageWrapper({
|
||||
noMaxWidth = false,
|
||||
noFlex1 = false,
|
||||
containerProps,
|
||||
padding = '4',
|
||||
...props
|
||||
}: PageWrapperProps) {
|
||||
return (
|
||||
@@ -33,7 +36,7 @@ export default function PageWrapper({
|
||||
<Flex
|
||||
direction="column"
|
||||
gap="4"
|
||||
p="4"
|
||||
p={padding}
|
||||
style={{
|
||||
width: '100%',
|
||||
maxWidth: noMaxWidth ? undefined : size,
|
||||
|
||||
Reference in new issue
Block a user