More work on the layout

This commit is contained in:
Gregory Schier
2023-03-04 21:51:17 -08:00
parent 1f5e7dbaa9
commit 1ecf642181
9 changed files with 198 additions and 147 deletions

View File

@@ -76,7 +76,7 @@ export function VStack({ className, space, children, ...props }: VStackProps) {
interface BaseStackProps extends HTMLAttributes<HTMLElement> {
items?: 'start' | 'center';
justify?: 'start' | 'end';
justify?: 'start' | 'center' | 'end';
as?: React.ElementType;
}
@@ -90,6 +90,7 @@ function BaseStack({ className, items, justify, as = 'div', ...props }: BaseStac
items === 'center' && 'items-center',
items === 'start' && 'items-start',
justify === 'start' && 'justify-start',
justify === 'center' && 'justify-center',
justify === 'end' && 'justify-end',
)}
{...props}