Skip to content

donavon/styled-shortcut-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Styled Shortcut Components 💅

Build Status npm version Coverage Status

TL;DR

  • A convenience package that wraps Styled Components 💅 with Styled Shortcuts so you can do this:
    font-size: ${'fontSize:px'};
    instead of this:
    font-size: ${({ fontSize }) => `${fontSize}px`};

Install

$ npm i --save styled-shortcut-components

Usage

All you need to do to get the power of Styled Shortcuts is change your import from this:

import styled from 'styled-components';

to this:

import styled from 'styled-shortcut-components';

See Styled Components and Styled Shortcuts for complete details.

About

A convenience package that wraps styled-components with styled-shortcuts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published