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

rsuite-docs

v0.2.2

Published

RSuite components built with React

Downloads

26

Readme

关于 RSUITE


RSUITE [ɑː(r)swiːt] 是一套基于 React 开发的 UI 组件库,产生于 HYPERS 前端团队,同时也是面向企业级后台产品的一套前端解决方案。

RSUITE 目标就是让 WEB 开发更快捷,同时具有一定的灵活性和扩展性,致力于改善前端工程师的开发体验。


版本与状态

npm

npm

Travis Coverage Status

社区

Discord

快速开始

npm i rsuite --save

示例:

import { Button } from 'rsuite';

ReactDOM.render(<Button>Button</Button>, mountNode);

创建一个 RSUITE 应用

通过 create-rsuite-app 快速创建一个 RSUITE 应用。 另外,应用中还集成了以下内容:

  • Redux: 数据流管理
  • React Router: 路由管理
  • React Intl: 国际化
  • ESLint: 代码检查
  • Webpack: 应用构建及开发环境搭建
  • Babel: 代码编译

详细参考 dependencies

安装:

npm i -g yo
npm i -g generator-create-rsuite-app

创建项目:

# 创建并进入项目文件夹
mkdir your-project && cd your-project

// 使用脚手架安装项目
yo create-rsuite-app

运行项目:

等待 npm install 安装完成后,执行下面命令,打开 localhost:3002 即可运行项目。

npm run dev

使用中如果存在问题,提交 issues

主题相关

  • 方式 1 :引用 less 文件
// 如果需要使用一些拓展组件,应该引入组件样式
@import "~rsuite/lib/less/index";

// 引入 RSUITE 样式
@import "~rsuite-theme/dist/less/rsuite";

// 修改主题颜色,不设置则使用 RSUITE 默认颜色
@base-color: #6292f0;

// 可以修改主题中的变量参数,来自定义自己的主题
// 参考 https://github.com/rsuite/rsuite-theme/blob/master/src/less/variables.less
  • 方式 2 : CDN
<link rel="stylesheet" href="https://unpkg.com/rsuite-theme/dist/css/rsuite.min.css" />

使用中如果存在问题,提交 issues