mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-09 10:03:36 +00:00
feat: create reusable box component with same border
This commit is contained in:
parent
08f9f74383
commit
6606eb1625
15
src/components/General/BorderBox.tsx
Normal file
15
src/components/General/BorderBox.tsx
Normal 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
|
Loading…
x
Reference in New Issue
Block a user