@jeongyk92/react-customform

1.0.14 • Public • Published
import { CustomNumberInput, CustomSelect } from "@jeongyk92/react-customform/dist/components";
import { useMemo, useState } from "react";
import "./App.css";

function App() {
  const fontlist = useMemo(() => ["arial", "Roboto", "sans-serif", "serif"], []);
  const [font, setFont] = useState("arial");
  const [fontSize, setFontSize] = useState("24px");

  /**
   * @type {import("react").CSSProperties} ulStyle
   */
  const ulStyle = {
    padding: 0,
    margin: 0,
  };

  return (
    <div className="App">
      <CustomNumberInput unit="px" value={fontSize} min={20} max={30} onUpdateValue={(v) => setFontSize(v)} />
      <div>fontSize : {fontSize}</div>
      <div style={{ width: 300, height: 50 }}>
        <CustomSelect
          divStyle={{ fontFamily: font, fontSize: "0.9rem" }}
          ulStyle={ulStyle}
          selectItem={font}
          selectList={fontlist}
          onSelectItem={(sel) => setFont(sel)}
        />
      </div>
    </div>
  );
}

export default App;

https://blog.illunex.com/20200708-2/

https://stackoverflow.com/questions/58777217/typescript-tsc-does-not-respond-anything

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.140latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.140
1.0.130
1.0.120
1.0.110
1.0.100
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i @jeongyk92/react-customform

Weekly Downloads

0

Version

1.0.14

License

ISC

Unpacked Size

20.3 kB

Total Files

13

Last publish

Collaborators

  • jeongyk92