Improve Stack and HStack components

This commit is contained in:
Justin
2022-07-01 16:07:16 -04:00
parent f148cda74a
commit 1309521b9c
2 changed files with 3 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ const justifyContentOptions = {
center: 'justify-center',
start: 'justify-start',
end: 'justify-end',
around: 'justify-around',
};
const alignItemsOptions = {
@@ -32,7 +33,7 @@ interface IHStack {
/** Extra class names on the <div> element. */
className?: string,
/** Horizontal alignment of children. */
justifyContent?: 'between' | 'center' | 'start' | 'end',
justifyContent?: 'between' | 'center' | 'start' | 'end' | 'around',
/** Size of the gap between elements. */
space?: 0.5 | 1 | 1.5 | 2 | 3 | 4 | 6 | 8,
/** Whether to let the flexbox grow. */