@hackclub/scrapbook-grid
v1.0.1
Published
📸 Embed your Scrapbook in your React site
Downloads
5
Maintainers
Keywords
Readme
scrapbook-grid
📸 Embed your Scrapbook in your React site
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