mini-ground
v1.1.9
Published
messy toolbox
Downloads
580
Readme
Installation
npm install mini-ground (-g)
Usage
- npmreg 更换npm源
- gradient 生成渐变颜色
npmreg
// npmreg 更换npm源
current Get current registry | 获取当前镜像
list View current registries | 查看当前镜像
set <name> Set registry | 设置镜像
use Select registry | 更换镜像
add Add registry | 添加自定义镜像
del Delete registry | 删除自定义镜像
rename Rename registry | 重命名自定义镜像
edit Edit registry | 编辑自定义镜像路径
ping 测试镜像地址速度
gradient
// gradient 生成渐变颜色
import { createGradientClass } from 'mini-ground';
const linearGradient = createGradientClass('45deg', '#16c8c8', '#40a440')
export default () => {
return <ConfigProvider
button={{
className: linearGradient,
}}
>
<Button>Login</Button>
</ConfigProvider>
}
Contributing
Contributions are welcome! Please read the contribution guidelines
first.
License
This project is licensed under the MIT License - see the LICENSE file for details.
PATH:LICENSE
MIT License
Copyright (c) 2024 LukeMatch