feat: create reusable box component with same border

This commit is contained in:
RadoslavDimchev 2023-08-28 10:45:20 +03:00
parent 08f9f74383
commit 6606eb1625
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
import { Stack } from 'tamagui'
type BorderBoxProps = {
children: React.ReactNode
}
const BorderBox = ({ children }: BorderBoxProps) => {
return (
<Stack style={{ border: '1px solid #DCE0E5', borderRadius: '0.5rem', padding: '6px 12px' }}>
{children}
</Stack>
)
}
export default BorderBox