Skip to content

amendable/spacing-aliases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spacing aliases

This allows you to use shorthand aliases for spacing props (marginX, py, paddingY, etc.).

Usage

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

render(
  <AmendableProvider
    resolvers={[
      spacingAliases(),
      inlineStyles()
    ]}
  >
    <Box paddingX='20px' paddingY='10px' color='white' backgroundColor='black'>
      Padded box
    </Box>
  </AmendableProvider>
)

Supported props

It supports longer forms as described here.

The shorter form syntax thats supported is here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published