“Input Nomor Telepon UI Material” Kode Jawaban

Input Nomor Telepon UI Material

import PhoneInput from 'react-phone-number-input'
import CustomPhoneNumber from '../components/prebuilt/PhoneNumber'
...
<PhoneInput
   placeholder='Enter phone number'
   value={phone}
   onChange={setPhone}
   inputComponent={CustomPhoneNumber}
/>
...
Sleepy Squirrel

Input Nomor Telepon UI Material

import { forwardRef } from 'react'
import TextField from '@material-ui/core/TextField'
import { makeStyles } from '@material-ui/core/styles'

const useStyles = makeStyles(theme => ({
  input: {
    backgroundColor: '#fff'
  }
}))

const phoneInput = (props, ref) => {
  const classes = useStyles()

  return (

    <TextField
      {...props}
      InputProps={{
        className: classes.input
      }}
      inputRef={ref}
      fullWidth
      size='small'
      label='Phone Number'
      variant='outlined'
      name='phone'
    />
  )
}
export default forwardRef(phoneInput)
Sleepy Squirrel

Jawaban yang mirip dengan “Input Nomor Telepon UI Material”

Pertanyaan yang mirip dengan “Input Nomor Telepon UI Material”

Lebih banyak jawaban terkait untuk “Input Nomor Telepon UI Material” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya