|
|
@@ -21,12 +21,31 @@ const TemporalPage: NextPage = () => { |
|
|
|
onChange={(e) => { console.log('change', e.currentTarget.name, e.currentTarget, e.currentTarget.value)}} |
|
|
|
/> |
|
|
|
</Subsection> |
|
|
|
<Subsection title="Non-enhanced"> |
|
|
|
<Formatted.PhoneNumberInput |
|
|
|
label="Phone" |
|
|
|
name="phone" |
|
|
|
border |
|
|
|
onFocus={(e) => { console.log('focus', e.currentTarget)}} |
|
|
|
onBlur={(e) => { console.log('blur', e.currentTarget)}} |
|
|
|
onChange={(e) => { console.log('change', e.currentTarget.name, e.currentTarget, e.currentTarget.value)}} |
|
|
|
/> |
|
|
|
</Subsection> |
|
|
|
<Subsection title="With Default Value"> |
|
|
|
<Formatted.PhoneNumberInput |
|
|
|
label="Phone" |
|
|
|
name="phone2" |
|
|
|
enhanced |
|
|
|
border |
|
|
|
defaultValue="+639876543210" |
|
|
|
/> |
|
|
|
</Subsection> |
|
|
|
<Subsection title="With Ref"> |
|
|
|
<div className="flex gap-4 flex-wrap"> |
|
|
|
<div> |
|
|
|
<Formatted.PhoneNumberInput |
|
|
|
label="Phone" |
|
|
|
name="phone" |
|
|
|
name="phone3" |
|
|
|
enhanced |
|
|
|
border |
|
|
|
ref={phoneNumberRef} |
|
|
|