
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@uiw/react-empty
Advanced tools
空状态时的展示占位图。新组件 v4.11.0+
支持。
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, Icon } from 'uiw';
const Demo = () => {
return(
<Empty
description={
<span>
Customize <a href="#">Description</a>
</span>
}
icon={<Icon type="shopping-cart" style={{ fontSize: '39px' }} />}
>
<Button type="primary">新增数据</Button>
</Empty>
)
}
ReactDOM.render(<Demo />, _mount_);
import ReactDOM from 'react-dom';
import { Empty, Button } from 'uiw';
ReactDOM.render(<Empty description={false} />, _mount_);
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
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 111 weekly downloads. As such, @uiw/react-empty popularity was classified as not popular.
We found that @uiw/react-empty demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.