0.1.1 • Published 10 months ago

@dwidge/react-classy v0.1.1

Weekly downloads
-
License
BSL-1.0
Repository
-
Last release
10 months ago

@dwidge/react-classy

Lite styled components for React

demo

import React from "react";
import { div } from "@dwidge/react-classy";
import "@dwidge/react-classy/flex.css";

const App: React.FC<{}> = () => {
  return (
    <Background>
      <Foreground>Hi. Bi.</Foreground>
    </Background>
  );
};

const Background = div("flex center", {
  background: "navy",
});

const Foreground = div("flex stretch vertical", {
  minHeight: "90%",
  maxWidth: "90%",
  background: "red",
});

export default App;

components

div img canvas

classes

flex stretch center vertical horizontal absolute

0.1.1

10 months ago

0.1.0

11 months ago