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

magic-ui-react

v1.3.4

Published

> 基于React和vite构建的ReactUI组件库,主要用于个人开发中后台产品。

Downloads

40

Readme

Magic UI For React

基于React和vite构建的ReactUI组件库,主要用于个人开发中后台产品。

特性

  • 深色浅色模式
  • 个人独立开发,代码风格具有统一标准。
  • 项目完全开源,可通过npm(yarn)等包管理工具免费使用。
  • 组件样式单独存放,可单独自定义替换。
  • 每个组件为独立的一部分,不通过npm(yarn)等包管理器下载,也可以通过复制组件单独文件夹进行使用
  • 每个组件之间互不干扰,避免造成修改当然组件影响其他组件。
  • 绝大部分组件功能都是通过自定义代码实现,极少使用第三方库,避免在复制使用时导入过多依赖。

缺点

  • Form表单和Table列表只有基础功能不适合做大型项目
  • 不支持低版本浏览器
  • react、react-router版本较高不支持低版本

兼容环境

  • 现代浏览器
  • 不支持IE浏览器
  • react > 18 react-router > 6

安装

使用 npm 或 yarn 安装

我们推荐使用 npm 或 yarn 的方式进行开发,不仅可在开发环境轻松调试,也可放心地在生产环境打包部署使用

npm install magic-ui-react --save
yarn add magic-ui-react --save

导入样式

可将 magic-ui-react/style 或者 magic-ui-react/theme 复制到本地,通过本地修改实现自定义。

// 组件样式
import 'magic-ui-react/style'
// 图标文件
import 'magic-ui-react/icons/css'
// 主题配色文件
import 'magic-ui-react/theme'
// 公共cssClass文件
import 'magic-ui-react/globalLess'

TypeScript

Magic UI For React 使用 TypeScript 进行书写并提供了完整的定义文件。(不要引用 @types/antd)。

图标库 Fontawesome

验证库 b-validate

推送到NPM

npm publish
or
npm publish --access=public