我想将CoreUI软件包添加到我的轨道(使用React)应用程序中。 但是我不知道该怎么办。我知道有一个coreui宝石,但是该宝石具有1.0.1版本的coreui ...
也许只是安装npm install @coreui/coreui
吗?我不知道。
我只想将coreui react模板添加到我的Rails应用程序中。
谢谢!
答案 0 :(得分:1)
它在Core UI official docs上被提及。...
=====add css=====
<link rel="stylesheet" href="https://unpkg.com/@coreui/coreui/dist/css/coreui.min.css">
=======add js========
<script src="http://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
<script src="https://unpkg.com/@coreui/coreui/dist/js/coreui.min.js"></script>
======npm install -> get the react packages and functions=======
npm install @coreui/coreui