1.1.33 • Published 9 months ago

@hackclub/meta v1.1.33

Weekly downloads
43
License
MIT
Repository
github
Last release
9 months ago

@hackclub/meta

React component for generating Open Graph/etc meta tags for Hack Club pages. Designed for Next.js but framework-agnostic.

Not recommended for non-Hack Club sites—you’ll get Hack Club favicons :)

Usage

yarn add @hackclub/meta
# npm i @hackclub/meta

Example for hackathons.hackclub.com:

// import Head from 'next/head'

<Meta
  as={Head} // component to wrap tags in, defaults to React.Fragment
  name="Hack Club" // site name
  title="Hackathons" // page title
  description="List of upcoming high school hackathons" // page description
  image="https://hackathons.hackclub.com/card.png" // large summary image URL
  color="#ec3750" // theme color
  manifest="/site.webmanifest" // link to site manifest
/>

All props are optional. If you include multiple times, the tags from the last instance will be used.

MIT License

1.1.33

9 months ago

1.1.32

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

4 years ago

0.1.1

4 years ago

0.1.0-alpha.0

4 years ago