Permalink
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (17 sloc) 381 Bytes

<Sms>

Creates <a> element with href attribute formatted according to SMS protocol.

Usage

import {Sms} from 'libreact/lib/Sms';

<Sms phone='123' body='hello'>Click me!</Sms>

Props

interface ISmsProps {
  phone: string;
  body?: string;
}

, where

  • phone - required, string, phone number.
  • body - optional, string, SMS text body.