preact-css-styler
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

preact-css-styler 👋 npm version

This component is a lightweight, simple line style component.

Installation

npm install preact-css-styler

How to use

import styled from "preact-css-styler";

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

Package Sidebar

Install

npm i preact-css-styler

Weekly Downloads

41

Version

1.0.1

License

MIT

Unpacked Size

28.7 kB

Total Files

22

Last publish

Collaborators

  • younkue