1.0.9 • Published 3 years ago

@hypesync/seo v1.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

HypeSync SEO Component

SEO component for landing pages built with React.

🚀 Getting Started

npm install --save @hypesync/seo
yarn add @hypesync/seo

⚛️ Component Properties

NameTypeDescription
siteName (optional)StringName of the website (e.g: Good Company, My Company, etc.)
title (optional)StringTitle of the current page (e.g: Home, Contact, etc.)
description (optional)StringDescription of the page (e.g: Learn more about what and how we work, etc.)
titleSeparator (optional)StringSeparator between the title and the site name. By default it's the \| character.
url (optional)StringURL used as Open Graph URL for link previews.
imageUrl (optional)StringImage URL used as Open Graph Image for link previews.
lang (optional)StringLanguage of the page which will be appended to the HTML tag. By default it's en.
keywords (optional)String[]Meta keywords of your page.
meta (optional)MetaData[]Additional meta data to be appended to the as meta tags.

💻 Usage

import SEO from '@hypesync/seo'

export function MyLandingPage() {
  return (
    <div>
      <SEO
        siteName="Landing Page Co."
        title="My Landing Page"
        description="Lorem ipsum dolor sit amet consectetur adipiscing elit."
        titleSeparator="|"
        url="https://landingpageco.com"
        imageUrl="https://static.landingpageco.com/link-preview.png"
        lang="en"
        keywords={['landing', 'page', 'website']}
        meta={[
          {
            property: 'og:type',
            content: 'website'
          }
        ]}
      />
    </div>
  )
}

License

MIT © HypeSync Inc.

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago