#Making a phone number input?
8 messages · Page 1 of 1 (latest)
I'm trying a few things but right now text input is the best I can do with inside a group with a text element showing the country code but it looks super janky
<Group>
<TextInput disabled value="+92" style={{ width: 60 }} />
<TextInput
mt={5}
label="Phone Number"
placeholder="315xxxxxxx"
variant="filled"
required
value={phoneNumber}
onChange={ev => setPhoneNumber(ev.currentTarget.value)}
/>
</Group>
Is there no way to implement a leftSection in a TextInput?
That works for now, any suggestions on making the design cleaner, adding a divider to the right of the text somehow?