Socket
Book a DemoInstallSign in
Socket

rayhomieui

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rayhomieui

React ui components library

latest
Source
npmnpm
Version
0.1.14
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Rayhomie UI

文档:http://ui.rayhomie.icu/

安装依赖

#使用npm安装
npm install --save rayhomieui
#使用yarn安装
yarn add rayhomieui

全局引入样式

如果想要正常使用 Rayhomie UI,还需要在我们项目的 css 入口文件中导入 rayhomieui 的 css 层叠样式文件。 假设我们项目的 css 全局入口文件名叫 global.css

//global.css
@import "rayhomieui/dist/index.css";
...

或者我们也可以在项目的 JS 入口文件中全局引入样式文件,假设这里叫 App.js

//App.js
import "rayhomieui/dist/index.css";
...

使用组件

import React from "react";
import { Button } from "rayhomieui";

const Hello = () => {
  return <Button>Hello</Button>;
};

export default Hello;

Keywords

React

FAQs

Package last updated on 03 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts