hide stack border

This commit is contained in:
Bowen Tan 2021-10-27 14:30:32 +08:00
parent 52ccb12c93
commit 8fe946fcf0
2 changed files with 6 additions and 2 deletions

View File

@ -18,6 +18,7 @@ const HStack: ComponentImplementation<Static<typeof PropsSchema>> = ({
justify,
spacing,
slotsMap,
hideBorder,
}) => {
return (
<BaseHStack
@ -25,7 +26,7 @@ const HStack: ComponentImplementation<Static<typeof PropsSchema>> = ({
width="full"
padding="4"
background="white"
border="1px solid"
border={hideBorder ? '0' : '1px solid'}
borderColor="gray.200"
borderRadius="4"
{...{ direction, wrap, align, justify, spacing }}
@ -41,6 +42,7 @@ const PropsSchema = Type.Object({
align: AlignItemsSchema,
justify: JustifyContentSchema,
spacing: SpacingSchema,
hideBorder: Type.Optional(Type.Boolean()),
});
export default {

View File

@ -18,6 +18,7 @@ const VStack: ComponentImplementation<Static<typeof PropsSchema>> = ({
justify,
spacing,
slotsMap,
hideBorder,
}) => {
return (
<BaseVStack
@ -25,7 +26,7 @@ const VStack: ComponentImplementation<Static<typeof PropsSchema>> = ({
height="full"
padding="4"
background="white"
border="1px solid"
border={hideBorder ? '0' : '1px solid'}
borderColor="gray.200"
borderRadius="4"
{...{ direction, wrap, align, justify, spacing }}
@ -41,6 +42,7 @@ const PropsSchema = Type.Object({
align: AlignItemsSchema,
justify: JustifyContentSchema,
spacing: SpacingSchema,
hideBorder: Type.Optional(Type.Boolean()),
});
export default {