feat: add custom style when use border box
This commit is contained in:
parent
6a27c816f1
commit
e66a1f7fcb
|
@ -2,11 +2,14 @@ import { Stack } from 'tamagui'
|
|||
|
||||
type BorderBoxProps = {
|
||||
children: React.ReactNode
|
||||
style?: React.CSSProperties
|
||||
}
|
||||
|
||||
const BorderBox = ({ children }: BorderBoxProps) => {
|
||||
const BorderBox = ({ children, style }: BorderBoxProps) => {
|
||||
return (
|
||||
<Stack style={{ border: '1px solid #DCE0E5', borderRadius: '0.5rem', padding: '6px 12px' }}>
|
||||
<Stack
|
||||
style={{ border: '1px solid #DCE0E5', borderRadius: '16px', padding: '6px 12px', ...style }}
|
||||
>
|
||||
{children}
|
||||
</Stack>
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue