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

2018-09-07 15:53:23 +08:00
 ShanaMaid

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

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

Cli-Tool: https://github.com/Yoshino-UI/yoshino-cli

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

设计思路

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

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

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

特性

安装

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>
  )
}
872 次点击
所在节点    问与答
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/487145

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX