mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-27 11:51:13 +01:00
More work on the layout
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user