@yrdsl/viewer
v0.2.0
Published
React component that renders a digital yard sale (photos, items, contact buttons). Consumed by yrdsl.app and the yrdsl-self-hosted template.
Readme
@yrdsl/viewer
React component that renders a yrdsl.app digital yard sale
page from SaleSite + SaleItem[] JSON. The same component powers the
hosted version and the
self-hosted template.
Install
npm install @yrdsl/viewer @yrdsl/core reactUsage
import { SaleViewer } from '@yrdsl/viewer';
import '@yrdsl/viewer/styles.css';
export function App({ site, items }) {
return <SaleViewer site={site} items={items} />;
}site and items should satisfy the schemas exported by @yrdsl/core.
Source
https://github.com/KuvopLLC/yrdsl/tree/main/packages/viewer
License
MIT.
