feat: create reusable box component with same border
This commit is contained in:
parent
08f9f74383
commit
6606eb1625
|
@ -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
|
Loading…
Reference in New Issue