@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

    Keywords

    none

    Install

    npm i @hackclub/scrapbook-grid

    DownloadsWeekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    127 kB

    Total Files

    7

    Last publish

    Collaborators

    • sampoder
    • uanirudhx
    • lachlanjc
    • maxwofford
    • matthewstanciu