npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

lite-frames

v1.1.1

Published

This is a library of light weight frames UI (device, screens) made into web-components. you are allowed to embed whatever inside the frames

Downloads

13

Readme

Built With Stencil npm version

Lite Frames

This is a library of light weight frames UI (device, screens) made into web-components. you are allowed to embed whatever inside the frames

Why use It?

Lite frame provide quality and light-weight frames for your web project instead of using the conventional image format or building something from scratch.

These frame are build with HTML and CSS so they are definitely lighter than high quality png frames.

Lite Frames have plans to add more frames (and screens) e.g terminal frame, chrome browser frame, and other useful frames.

Images of Frames

Demo

View Live Demo and Playground

How to use

Import lite-frames into your project

  1. Using script tag:

    <script src="https://unpkg.com/[email protected]/dist/lite-frames.js">
    </script>
  2. using npm

    • install lite-frame

      npm i lite-frames
    • import the package

      import 'lite-frames'

      See Stencils Docs on how to use with any frameworks or libraries when using npm

      👉🏻 Stencil Integration docs

  • Every Lite Frame is a individual element, e.g For Iphone X we have

    <lite-iphone-x></lite-iphone-x>
  • A Lite Frame inherits the width of it parent and must have a parent element with a width greater than 0px

    <div style="width:200px;">
      <lite-iphone-x></lite-iphone-x>
    </div>
  • Lite Frame have two theme modes

    • Light mode
    <lite-iphone-x theme="light"></lite-iphone-x>
    • Dark Mode (default)
    <lite-iphone-x theme="dark"></lite-iphone-x>
  • Contents to be embedded inside the frame can be added as a decendant of the frame.

    <lite-iphone-x theme="dark">
        <!-- Html Content or text content -->
          <h1>This is the content<h1>
    </lite-iphone-x>

Available Frames Tags

| Frame Name | Tag | | -------------- | -------------------------------- | | Iphone X | <lite-iphone-x></lite-iphone-x> | | Google pixel 4 | <lite-pixel-4></lite-pixel-4> | | Macbook | <lite-mac-book></lite-mac-book> | | IPad Pro | <lite-ipad></lite-ipad> |

Attributes

| Atribute | Description | Possible Values | | -------- | ----------------- | --------------- | | theme | Component's theme | dark, light |