@hixme-ui/phone

    2.0.0-alpha.12 • 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

    Install

    npm i @hixme-ui/phone

    DownloadsWeekly Downloads

    45

    Version

    2.0.0-alpha.12

    License

    MIT

    Unpacked Size

    8.76 kB

    Total Files

    9

    Last publish

    Collaborators

    • sureco-engineering
    • dreamingbinary
    • billyxs