Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/javadbat/jb-mobile-input
https://github.com/javadbat/jb-mobile-input
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/javadbat/jb-mobile-input
- Owner: javadbat
- Created: 2022-10-30T10:02:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-11T16:54:13.000Z (11 days ago)
- Last Synced: 2024-12-11T17:39:43.582Z (11 days ago)
- Language: TypeScript
- Size: 20.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jb-mobile-input web component
superset component on [jb-input](https://github.com/javadbat/jb-input) , just for mobile number input with extra filter and ready to use validator.
- dont accept non-number char
- accept persian number char
- type heading `09` in case of user missing it and always give you the number in the same format.
- have ready to use inside validator with [jb-validation](https://github.com/javadbat/jb-validation)Demo in codepen: [jb-mobile-input](https://codepen.io/javadbat/pen/eYwZQjV)
## using with JS frameworks
to use this component in **react** see [`jb-mobile-input/react`](https://github.com/javadbat/jb-mobile-input/tree/main/react);
## Installation
```bash
npm install --save jb-mobile-input
```## Usage
```js
import 'jb-mobile-input';
```
or by using cdn
```html```
```html```
to learn more information about this component and how to customize it like events, validation, styling,... just read [jb-input](https://github.com/javadbat/jb-input).## styling
all styles come from [jb-input](https://github.com/javadbat/jb-input) except `--jb-mobile-input-input-direction` this may be set if you want your input to be rtl (not recommended).## Other Related Docs:
- see [`jb-mobile-input/react`](https://github.com/javadbat/jb-mobile-input/tree/main/react) if you want to use this component as a ReactJS component.
- see [All JB Design system Component List](https://github.com/javadbat/design-system/blob/master/docs/component-list.md) for more components
- use [Contribution Guide](https://github.com/javadbat/design-system/blob/master/docs/contribution-guide.md) if you want to contribute in this component.