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 🙏

© 2026 – Pkg Stats / Ryan Hefner

figma-auto-layout

v1.0.0

Published

Figma auto-layout - web components

Readme

Figma auto layout - Web components

Do you ever dreamed about used the figma auto-layout into your project like your designer? You are in the good place.

Create easely thing with the auto-layout web component.

Features

  • Layout direction
  • Space between items
  • Padding
  • Spacing mode
  • Height and Width
  • Clip content

Override

--xx-small	: 4px
--x-small	: 8px
--small		: 16px
--medium	: 24px
--regular	: 32px
--large		: 40px
--x-large	: 56px
--xx-large	: 64px

Usage

Define

You can use the auto-layout with a balise

<auto-layout>
    ...
</auto-layout>

Or apply an argument into any balise like

<div auto-layout></div>
<section auto-layout></section>
<button auto-layout></button>

Direction

First, you may set the layout direction to your content, by default it's vertical

// Vertical
<auto-layout direction="vertical">
    ...
</auto-layout>
<auto-layout>
    ...
</auto-layout>

// Horizontal
<auto-layout direction="vertical">
    ...
</auto-layout>

App Screenshot

Alignment

Value

top-left
top
top-right
center-left
center
center-right
bottom-left
bottom
bottom-right
<auto-layout align="...">
    ...
</auto-layout>

App Screenshot

Space between items

By default, no space between items are set. You can set a variable or a number.

<auto-layout [...] gap="small">
    // OR
<auto-layout [...] gap="16">

App Screenshot

Padding

By default, no padding are set. You can set a variable or a number.

<auto-layout [...] padding="small">
    // OR
<auto-layout [...] padding="16">

App Screenshot

You can set only the top and bottom or the left and right like this

<auto-layout [...] padding-vertical="small">
<auto-layout [...] padding-horizontal="small">

You also can apply for a single edge

<auto-layout [...] padding-top="small">
<auto-layout [...] padding-bottom="small">
<auto-layout [...] padding-left="small">
<auto-layout [...] padding-right="small">

Of course, they are cumulable

<auto-layout [...] padding-top="small" padding-horizontal="regular">

Spacing mode

<auto-layout [...] space-between>

App Screenshot

Height and width

You can define a height and with to your auto-layout. You can use number or value.

<auto-layout [...] height="300" width="450">

App Screenshot

Fill container

To fill the parent, you can use "fill" or "fill-container"

<auto-layout [...] width="fill" height="200">

App Screenshot

Hug content

By default, the auto-layout use the "hug" or "hug-content"

<auto-layout [...] width="hug" height="200">

App Screenshot

Clip content

If you need to keep your content inside the auto-layout, you can add an argument "clip" or "clip-content"

<auto-layout [...] clip>

App Screenshot

Run Locally

Clone the project

  git clone [email protected]:melvindesign/auto-layout.git

Go to the project directory

  cd auto-layout

Install dependencies

  npm install

Start the server

  npm run start

Authors

Tech Stack

SCSS, StencilJS

License

MIT License