LinkPreview
Import
import { LinkPreview } from '@resultadosdigitais/tangram-components'
Properties
url 📍
title
description
imageSrc
fetcher
| Type | func |
|---|---|
| Default | LinkPreview.fetcher |
| Param | url string - The url property. |
| Returns | Promise - When resolved, it will return the data object associated with the URL page, this may include the title, description, and imageSrc attributes. |
Description
Sets the custom fetcher function. Must be an asynchronous function.
target
| Type | Enum of: |
|---|---|
| Default | '_blank' |
Description
Where to display the linked URL.
For more information: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/a#target.
rel
| Type | string |
|---|---|
| Default | 'noreferrer' |
Description
The relationship between a linked resource and the current document.
For more information: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/rel.
Feedback
Para reportar algum problema ou sugerir alterações, use nosso formulário de melhorias ou, se preferir, abra uma issue no nosso Github.