Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

infinite-paper

fibo18MIT0.1.1

Web Components for design sketches

web, components, infinite, design

readme

infinite-paper

Web Components for design sketches

Usage | API | License |

Usage

Add a single infinite-paper: it will disable scroll and fill the whole viewport. Put also some window-frame, for example

<infinite-paper>
  <window-frame
    top="10"
    left="10"
    width="200"
    height="400"
    src="https://www.example.com/page.html"
  ></window-frame>
</infinite-paper>

API

<infinite-paper>

HTML attributes:

  • scale: number

CSS variables:

  • --infinite-paper-background-color: #fefefe

<window-frame>

HTML attributes:

  • top: number
  • left: number
  • width: number
  • height: number
  • src: string

CSS variables:

  • --window-frame-box-shadow-color: rgba(0, 0, 0, 0.17)

License

MIT