
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@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 70 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.