Input phone number

I’m trying to make a simple form using dash and dash-bootsrap-component dbc.
how can i put an input for a phone number?.
i tried this but it doesn’t give me a phone format
dbc.Row([
dbc.Col([
dbc.Label(id=‘Phone’),
dbc.Input(type=‘number’, id=‘phone’,
placeholder=“Enter Phone number”, pattern=“[0-9]{3}-[0-9]{2}-[0-9]{3}”)
]),
]),

Hey @manelalayet,

Have you looked into dash-Mantine-components?

I think you can pass “tel” as the type of input.

———

dbc also has the same available type.

Thank you so much i need to check this :smiley: .

1 Like