0.1.1 • Published 4 years ago

@amendable/breakpoints v0.1.1

Weekly downloads
32
License
MIT
Repository
github
Last release
4 years ago

Breakpoints

This adds breakpoint support to your styles. It works through CSS styles and support SSR without any setup.

Usage

import { render } from 'react-dom'
import Box, { AmendableProvider } from '@amendable/core'
import breakpoints from '@amendable/breakpoints'
import inlineStyles from '@amendable/inline-styles'

render(
  <AmendableProvider
    resolvers={[
      breakpoints(),
      inlineStyles()
    ]}
  >
    <Box color={{ xs: 'red', lg: 'blue' }}>
      This will be red on small screens and blue on desktops+.
    </Box>
  </AmendableProvider>
)

Supported props

It supports all props.

0.1.0

4 years ago

0.1.1

4 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago