0.0.5 • Published 5 years ago

styled-inline-components v0.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

styled-inline-components

Inline style system for styled-components

npm

Install

npm install styled-inline-components styled-components

Usage

import React from 'react';
import Elements from 'styled-inline-components';

const {Div, P} = Elements;

const Component = () => {
  return (
    <Div padding='20px' background='papayawhip'>
      <P color='palevioletred'>Hello World</P>
    </Div>
  );
};

Any dom element that styled-components recognizes as valid can be used. To require it, capitalize the first letter of the element.

For example:

TagComponent
divDiv
pP
sectionSection

Why?

Inspired by a styled-components spectrum thread.

0.0.5

5 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.0

7 years ago