Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

justify-content is not applying in chakra ui

I'm developing a Website using Next.js and Chakra-ui. Here I'm tring to align the ButtonGroup to the end. For that I'm trying to use justifyContent="space-between" but itsnt working. Here is the code for the Card Components

            <Flex direction="column" px={0} justifyContent="space-between">
                <Flex px={10} pt={10} direction="column" lineHeight="7" mb={5}>
                    <Heading size="sm">{data.name}</Heading>
                    <UnorderedList mt={5}>
                        {data.features.map((element, index) => (<ListItem key={index} fontSize="13px">{element}</ListItem>))}
                    </UnorderedList>
                </Flex>
                <ButtonGroup spacing="0">
                    <Button w="100%" m={0} borderRadius="0 0 0 20px" fontSize="14px">
                        Explore More
                    </Button>
                    <Button
                        w="100%"
                        color="white"
                        bg="#274E85"
                        m={0}
                        borderRadius="0 0 20px 0"
                        fontSize="14px"
                    >
                        Apply Now
                    </Button>
                </ButtonGroup>

            </Flex>

Please Someone help me solve this enter image description here

like image 973
Purna Mahesh Avatar asked Dec 31 '25 07:12

Purna Mahesh


1 Answers

Well in my case I was writing d=flex, and replacing it with display=flex worked fine for me.

like image 176
Lokesh Negi Avatar answered Jan 03 '26 12:01

Lokesh Negi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!