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

react-semantic-layout

v0.1.5

Published

Semantic layout in React. Inspired by Flutter.

Downloads

163

Readme

react-semantic-layout(beta)

Build Status

一套布局组件,灵感来自 flutter,可以按照组件同名去 flutter 搜索相同的组件。

Motivation

在基础组件的支持下,我们的业务代码已经很少需要写样式了,而我们的大部分工作是处理布局和实现逻辑。

本组件尝试一种新的写法,让我们业务仔回归初心,专心处理布局和实现逻辑。

Design

效仿 flutter 的设计,我们把 style 拆分成 3 个部分, 分别是:布局,约束和样式。

布局(Layout)

https://flutter.dev/docs/development/ui/layout

目前从 style 拆分出来的布局属性有:display,margin,padding,overflow等等。

约束(Constraint)

只有 4 个属性 max-width, max-height, min-width, min-height。约束组件未实现,可作为样式使用。

样式(Style)

字体大小,字体颜色,背景色等等。