From 708f6c8ea11f33c641e55c6cf4f08820872d0334 Mon Sep 17 00:00:00 2001 From: Daseul Kim Date: Tue, 5 Nov 2024 15:46:30 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20QInput=20=EC=BB=B4=ED=8F=AC=EB=84=8C?= =?UTF-8?q?=ED=8A=B8=EC=97=90=20number=20type=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Playground.jsx | 21 ++++- src/components/common/input/QInput.jsx | 103 +++++++++++++++++-------- 2 files changed, 90 insertions(+), 34 deletions(-) diff --git a/src/components/Playground.jsx b/src/components/Playground.jsx index d1061306..5cd4588c 100644 --- a/src/components/Playground.jsx +++ b/src/components/Playground.jsx @@ -39,6 +39,7 @@ export default function Playground() { const [color, setColor] = useState('#ff0000') const [textInput, setTextInput] = useState('') + const [numberInput, setNumberInput] = useState(null) const [radioInput, setRadioInput] = useState('') const [checkboxInput, setCheckboxInput] = useState([]) const [selectedValue, setSelectedValue] = useState('') @@ -48,6 +49,9 @@ export default function Playground() { useEffect(() => { console.log('textInput:', textInput) }, [textInput]) + useEffect(() => { + console.log('numberInput:', numberInput) + }, [numberInput]) useEffect(() => { console.log('radioInput:', radioInput) }, [radioInput]) @@ -161,8 +165,19 @@ export default function Playground() { > QInput TextInput DATA RESET - - + + +
+ + +