Socket
Book a DemoInstallSign in
Socket

mantine-mobile-input

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mantine-mobile-input

A mantine mobile/phone input component with country code

1.0.3
latest
npmnpm
Version published
Weekly downloads
35
-86.22%
Maintainers
1
Weekly downloads
 
Created
Source

📱 mantine-mobile-input

A simple, customizable Mantine component for mobile/phone input with country code selection.
Built on top of @mantine/core and react-international-phone.

✨ Features

  • 📱 Phone number input with country code selector
  • 🌍 Built-in flags & country list
  • 🎨 Fully compatible with Mantine styles & themes
  • ⚡ Supports TypeScript & JavaScript
  • 📦 Works with npm, yarn, pnpm, bun

🚀 Installation

# npm
npm install mantine-mobile-input

# yarn
yarn add mantine-mobile-input

# pnpm
pnpm add mantine-mobile-input

# bun
bun add mantine-mobile-input

Also install peer dependencies (if not already):

npm install react react-dom @mantine/core @mantine/hooks react-international-phone

🔨 Usage

Basic

import { MobileInput } from "mantine-mobile-input";

function App() {
  return <MobileInput placeholder="Enter phone number" />;
}

With Mantine Form

import { useForm } from "@mantine/form";
import { MobileInput } from "mantine-mobile-input";

function App() {
  const form = useForm({....});

  return (
    <form onSubmit={form.onSubmit(console.log)}>
      <MobileInput
        label="Mobile"
        withAsterisk
        placeholder="Enter mobile number"
        key={form.key("mobile")}
        {...form.getInputProps("mobile")}
      />
    </form>
  );
}

⚙️ Props

MobileInput accepts all Mantine <TextInput /> props.

Example:

<MobileInput
  placeholder="Enter your number"
  label="Phone"
  withAsterisk
  onChange={(e) => console.log(e.target.value)}
/>

📂 Project Structure

mantine-mobile-input/
├── src/                # Component source
│   ├── MobileInput.tsx
│   └── index.ts
├── dist/               # Compiled output
│   ├── cjs/
│   ├── esm/
│   └── types/

🤝 Contributing

Pull requests and issues are welcome! If you’d like to add features (validation, formatting, etc.), feel free to open a PR.

📜 License

MIT © 2025 gpraj-works

Keywords

mantine

FAQs

Package last updated on 22 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.