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β
To report a problem, request new icons, request new component use cases, ask questions, share suggestions, or report bugs, get in touch through our Slack channel #tangram-design-system.