serp preview
view with GoogleMobilePreview added!
React 组件用于显示您的网站将如何出现在搜索引擎结果中
使用 npm:
$ npm i serp-preview
import { GooglePreview , BingPreview , YahooPreview , GoogleMobilePreview } from "serp-preview" ;
const Example = ( ) => (
< div >
< GooglePreview
title = "?React – A JavaScript library for building user interfaces"
description = "React makes it painless to create interactive UIs."
url = "https://reactjs.org"
link = "https://reactjs.org" / >
< BingPreview
title = "A declarative, efficient, and flexible ... - Wikipedia"
description = ""
url = "en.wikipedia.org › wiki › React"
link = "https://en.wikipedia.org/wiki/React" / >
< YahooPreview
title = "React Native · A framework for building native apps using React"
description = "A framework for building native apps using React."
url = "https://reactnative.dev"
link = "https://reactnative.dev" / >
< GoogleMobilePreview
title = "?React – A JavaScript library for building user interfaces"
description = "React makes it painless to create interactive UIs."
url = "https://reactjs.org"
link = "https://reactjs.org" / >
< / div >
)
财产 | 道具类型 | 必需的 | 默认 | 描述 |
---|---|---|---|---|
标题 | 细绳 | 是的 | - | 标题 |
描述 | 字符串/节点/[节点] | - | 无效的 | 元描述 |
网址 | 细绳 | 是的 | - | 网址 |
关联 | 细绳 | - | # | 关联 |