Refactor list and list items

This commit is contained in:
Kamran Ahmed
2021-08-14 22:43:25 +02:00
parent c8395aa3df
commit 41ec8327c4
6 changed files with 112 additions and 119 deletions

21
components/links-list.tsx Normal file
View File

@ -0,0 +1,21 @@
import React from 'react';
import { StackDivider, VStack } from '@chakra-ui/react';
type LinksListProps = {
children: React.ReactChild[]
};
export function LinksList(props: LinksListProps) {
const { children } = props;
return (
<VStack
rounded='5px'
divider={<StackDivider borderColor='gray.200' />}
spacing={0}
align='stretch'
>
{children}
</VStack>
);
}