@hackclub/scrapbook-grid

1.0.1 • Public • Published

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

/@hackclub/scrapbook-grid/

    Package Sidebar

    Install

    npm i @hackclub/scrapbook-grid

    Weekly Downloads

    7

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    127 kB

    Total Files

    7

    Last publish

    Collaborators

    • recursiveforte
    • merlin04
    • josias_aurel_wing
    • jianmin-chen
    • archmaster
    • cfanoulis
    • lachlanjc
    • maxwofford
    • matthewstanciu
    • uanirudhx
    • sampoder