Last active
July 10, 2022 21:38
-
-
Save jeremy-code/d523a0890915755f9211310ac1bda9d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { InputGroup, Input, InputLeftAddon, Select } from "@chakra-ui/react"; | |
const PhoneInput = () => { | |
return ( | |
<InputGroup> | |
<InputLeftAddon px={0} bg="transparent"> | |
<Select variant="filled" borderRightRadius={0}> | |
<option value="+1">+1</option> | |
</Select> | |
</InputLeftAddon> | |
<Input type="tel" /> | |
</InputGroup> | |
); | |
}; | |
export default PhoneInput; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment