Skip to content

Instantly share code, notes, and snippets.

@jeremy-code
Last active July 10, 2022 21:38
Show Gist options
  • Save jeremy-code/d523a0890915755f9211310ac1bda9d2 to your computer and use it in GitHub Desktop.
Save jeremy-code/d523a0890915755f9211310ac1bda9d2 to your computer and use it in GitHub Desktop.
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