Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@uiw/react-empty
Advanced tools
空状态时的展示占位图。新组件 v4.11.0+
支持。
import { Empty } from 'uiw';
// or
import Empty from '@uiw/react-empty';
import React from 'react';
import { Empty, Button } from 'uiw';
export default function Demo() {
return <Empty />
}
通过自定义属性定制个性化展示。
import React from 'react';
import { Empty, Button, Icon } from 'uiw';
export default function Demo() {
return (
<Empty
description={
<span>
Customize <a href="#">Description</a>
</span>
}
icon={<Icon type="shopping-cart" style={{ fontSize: '39px' }} />}
>
<Button type="primary">新增数据</Button>
</Empty>
)
}
import React from 'react';
import { Empty } from 'uiw';
export default function Demo() {
return <Empty description={false} />
}
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
description | 自定义描述内容 | ReactNode | 暂无数据 |
icon | 可以替换内置图标 | ReactNode | - |
size | 内置 svg 图标:尺寸 | number | string | - |
iconProps | 内置 svg 图标:属性设置 | React.SVGProps<SVGSVGElement> | - |
FAQs
Empty component
The npm package @uiw/react-empty receives a total of 106 weekly downloads. As such, @uiw/react-empty popularity was classified as not popular.
We found that @uiw/react-empty demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.