0.1.1 • Published 3 years ago

@amendable/breakpoints v0.1.1

Weekly downloads
32
License
MIT
Repository
github
Last release
3 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

3 years ago

0.1.1

3 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago