Lite styled components for React
npm install @dwidge/react-classyLite styled components for React
``js
import React from "react";
import { div } from "@dwidge/react-classy";
import "@dwidge/react-classy/flex.css";
const App: React.FC<{}> = () => {
return (
);
};
const Background = div("flex center", {
background: "navy",
});
const Foreground = div("flex stretch vertical", {
minHeight: "90%",
maxWidth: "90%",
background: "red",
});
export default App;
``
div img canvas
flex stretch center vertical horizontal absolute
Copyright DWJ 2024.
Distributed under the Boost Software License, Version 1.0.
https://www.boost.org/LICENSE_1_0.txt