Socket
Book a DemoInstallSign in
Socket

@bdp-rps/ui

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bdp-rps/ui

latest
Source
npmnpm
Version
0.0.25
Version published
Maintainers
1
Created
Source

Box is the default layout component that implements sensitive flexbox defaults similar to React Native.
It supports a couple of responsive props which means that it accepts either a single value or an array of values per breakpoint.

Box is a direct export of kilvin's Box.

Basic Usage

<Box space={5} direction="row">
  <Box padding={10} extend={{ backgroundColor: 'grey' }} />
  <Box
    padding={10}
    space={3}
    direction="row"
    extend={{ backgroundColor: 'grey' }}>
    <Box padding={10} extend={{ backgroundColor: 'lightgrey' }} />
    <Box padding={10} extend={{ backgroundColor: 'lightgrey' }} />
  </Box>
</Box>

Responsive Props

<Box
  padding={10}
  space={[3, , , 10]}
  direction={['column', , , 'row']}
  extend={{ backgroundColor: 'grey' }}>
  <Box padding={10} extend={{ backgroundColor: 'lightgrey' }} />
  <Box padding={10} extend={{ backgroundColor: 'lightgrey' }} />
</Box>

FAQs

Package last updated on 17 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts