Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uiw/react-empty

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-empty

Empty component

  • 4.11.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
129
Maintainers
1
Weekly downloads
 
Created
Source

Empty 空状态

空状态时的展示占位图。

import { Empty } from 'uiw';
// or
import Empty from '@uiw/react-empty';

基本使用

import ReactDOM from 'react-dom';
import { Empty, Button } from 'uiw';

ReactDOM.render(
  <Empty />,
  _mount_  
);

自定义属性

通过自定义属性定制个性化展示。

import ReactDOM from 'react-dom';
import { Empty } from 'uiw';

ReactDOM.render(
  <Empty 
    text="没有数据了"
    type="file-excel"
    size={60}
    iconColor="red"
    textColor="red"
    description={<Button type="primary">新增数据</Button>}
  />,
  _mount_  
);

Props

参数说明类型默认值
description自定义描述内容ReactNode-
iconColor图标颜色string-
sizeicon 大小string / number-
typeicon 图标IconsName-
text文字说明string-
textColor文字颜色string-

Keywords

FAQs

Package last updated on 16 Feb 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc