serp preview
view with GoogleMobilePreview added!
Web サイトが検索エンジンの結果にどのように表示されるかを示す 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 >
)
財産 | プロップタイプ | 必須 | デフォルト | 説明 |
---|---|---|---|---|
タイトル | 弦 | はい | - | タイトル |
説明 | 文字列 / ノード / [ノード] | - | ヌル | メタ説明 |
URL | 弦 | はい | - | URL |
リンク | 弦 | - | # | リンク |