autofit.js-react
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

autofit.js-react

usage

import { AutoFit } from "autofit.js-react";
import "./App.css";

function App() {
    return (
        <AutoFit id="container" className="container" designWidth="1920" designHeight="1080">
            <div className="block-1">尺寸为固定值的盒子</div>
            <div className="block-2">尺寸为百分比的盒子</div>
        </AutoFit>
    );
}

export default App;

示例截图

image-20231009140542025

Readme

Keywords

none

Package Sidebar

Install

npm i autofit.js-react

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

1.09 MB

Total Files

7

Last publish

Collaborators

  • alphabet_vis