
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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 } from 'uiw';
function Demo() {
return <Empty />
}
export default Demo
通过自定义属性定制个性化展示。
import React from 'react';
import { Empty, Icon, Button } 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>
)
}
export default Demo
import React from 'react';
import { Empty } from 'uiw';
function Demo() {
return <Empty description={false} />
}
export default Demo
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
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 96 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.