Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-css-styled

daybrush787.8kMIT1.1.9TypeScript support: included

This component is a lightweight, simple line style component for react.

styled, inline-style, styled-components, style, css, styler

readme

react-css-styled 👋 npm version

This component is a lightweight, simple line style component.

Installation

npm install react-css-styled

How to use

import styled from "react-css-styled";

const Styler = styled("div", `
{
  border-radius: 50%;
}
* {
  width: 100%;
  height: 100%;
}
:host div {
  position: relative;
}
`);

render() {
  return (<Styler className="">
    <div></div>
  </Styler>);
}

Development

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

License

MIT License

Copyright (c) 2019 Daybrush