Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ See the [Custom Matchers](#custom-matchers) section below for more information.

| Type | Required | Default | Description |
| ----------------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| boolean or string | No | `true` | Whether to link phone numbers. Possible values: `false` (disabled), `true` (`tel:{number}`), `"sms"` or `"text"` (`sms:{number}`). |
| boolean or string | No | `true` | Whether to link phone numbers. Possible values: `false` (disabled), `true` (creates the hyperlink `tel:{number}`), `"sms"` or `"text"` (creates the hyperlink `sms:{number}`). |

_Note:_ Currently, only US numbers are supported.

Expand Down Expand Up @@ -319,6 +319,8 @@ type UrlConfig = {
};
```

Setting `url={true}` is equivalent to `url={schemeMatches: true, wwwMatches: true, tldMatches: true}`.

```js
<Autolink text={text} url={false} />
<Autolink text={text} url={{ tldMatches: false }} />
Expand Down