1.0.1 • Published 3 years ago

@hackclub/scrapbook-grid v1.0.1

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

scrapbook-grid

📸 Embed your Scrapbook in your React site

NPM

Install

npm install --save @hackclub/scrapbook-grid
yarn add @hackclub/scrapbook-grid

Usage

import React, { Component } from 'react'

import ScrapbookGrid from '@hackclub/scrapbook-grid'

function App() {
  return (
    <ScrapbookGrid
      posts={postsData} // You can get this data from the Scrapbook api
      hideReactions={true}
      profile // If you are attempting to simulate a profile page
      fonts={{ body: '"Baloo 2"' }} // Should be a string that you would have with css after `font-family:`
      colors={{ red: '#ec3750'}} // View colors at: https://github.com/hackclub/summer-scrapbook#colors--fonts
    />
  )
}

Made by @sampoder