@hixme-ui/phone

2.1.0 • Public • Published

Phone

npm i --save @hixme-ui/phone

View it live

Phone extends the @hixme/text to provide phone formatting and linking

Usage

import Phone from '@hixme-ui/phone'

<Phone number='8881234567' />
// ouputs phone link as
// <a href="tel:8881234567">(888) 123 - 4567</a>

Phone.format

Phone has a format function it uses to display the phone format, and is accessible if needed outside of the JSX

import Phone from '@hixme-ui/phone'

Phone.format('8881234567')
// outputs string (888) 123 - 4567

/@hixme-ui/phone/

    Package Sidebar

    Install

    npm i @hixme-ui/phone

    Weekly Downloads

    6

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    8.79 kB

    Total Files

    9

    Last publish

    Collaborators

    • sureco-devops
    • sureco-engineering
    • dreamingbinary
    • billyxs