Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zenas-react-icecream

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zenas-react-icecream

Qiniu Icecream Design for React.

  • 2.6.2
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

React-icecream

Qiniu Icecream Design for React.

Permanent-Online-Website

http://ue-env-v2-icecream.qa.qiniu.io/

Install

yarn add react-icecream

Usage

从根结点导出

import { Button } from 'react-icecream'

function App() {
  return (
    <Button>content</Button>
  )
}

Principles

  • 不使用改变组件内部布局的 style
  • 不继承原生组件的 props,改为用 rootHtmlProps 的方式实现
  • rootHtmlProps 的 className、style、onChange、onClick 等等需要被 merge,而不是替换
  • 大部分组件都是通过间距来控制高度的,因此和设计稿有 2px 误差,设计稿必须把边框设计为内边框
  • 没有固定的公式计算 line-height,可以用 setIcecreamFontSize 设置字号的同时帮助设置行高

Develop

Build

yarn build

Test

yarn test

Start Dumi

yarn dev

FAQs

Package last updated on 08 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc