New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

zelda-rc

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zelda-rc

React components library

latest
Source
npmnpm
Version
0.5.18
Version published
Maintainers
1
Created
Source

欢迎来到 zelda-rc 组件库

这是基于Storybook + react + antd技术栈开发的组件库, 对ant design进行二次封装,致力于满足公司对ant design组件的个性化设置。

📦 安装

npm install zelda-rc --save-dev

或者

yarn add zelda-rc -dev

🔨 示例

import React, {useState} from "react"
import {Modal} from "zelda-rc"
import {Button} from "antd"

export default () => {
    const [visible, setVisible] = useState(false)
    return <div>
        <Button onClick={() => setVisible(true)}></Button>
        <Modal
            visible={visible}
            title="标题"
        >
            我是弹窗
        </Modal>
    <div>
}

引入样式

import "zelda-rc/es/modal/style/index.css"; // 或者 "zelda-rc/es/modal/style/indexless"

支持按需加载

babel: {
    plugins: [
        [
            "import",
            {
                "libraryName": "zelda",
                "libraryDirectory": "dist/es",
                "style": "css" // true
            }
        ]
    ],
}

Keywords

Component

FAQs

Package last updated on 13 Apr 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