Yoshino: 一个基于React的可定制化的PC组件库

Github: https://github.com/Yoshino-UI…

Docs: https://yoshino-ui.github.io/#/

Cli-Tool: https://github.com/Yoshino-UI…

安利一个自己写的组件库,欢迎大家指正,star来者不拒,pr也多多益善!

更多内容请移步Github, thanks!

设计思路

Yoshino本质上类似于Hexo,不同的主题组件类似于Hexo的各种theme,hexo官方仅提供了一套工具以及一个基础主题,Yoshino也是如此。

开发者只需要结合yoshino-cli就能像配置Hexo主题一样输出不同风格的组件。

而不同主题的Yoshino需要开源社区完成,官方提供类似的yoshino-theme-site来展示不同的主题,类似于hexojs/site

特性

  • 使用TypeScript开发,提供d.ts文件帮助开发者提高开发速度
  • 不同项目开发前可以通过yoshino-cli根据项目ui规范进行定制化开发产出。
  • 除了简单通用的ui组件,yoshino抽离出了一些易用性比较高的特效(功能)组件,例如

    • Helpers
    • Ripple
    • Transitions

安装

npm install yoshino

使用方法

import * as React from 'react';
import { Button } from 'yoshino';

export default function () {
  return (
    <div>
      <Button type="primary">Primary</Button>
      <Button>Default</Button>
      <Button type="dashed">Dashed</Button>
      <Button type="danger">Danger</Button>
    </div>
  )
}
    原文作者:ShanaMaid
    原文地址: https://segmentfault.com/a/1190000016312417
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞