
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
@hi-ui/breadcrumb
Advanced tools
@hi-ui/breadcrumb
TODO: description
const Breadcrumb = require('@hi-ui/breadcrumb');
// TODO: DEMONSTRATE API
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
data | 面包屑数据 | string | BreadcrumbItemProp [] | - |
separator | 自定义分隔符 | string | - | '/' |
名称 | 说明 | 类型 | 参数 | 返回值 |
---|---|---|---|---|
onClick | 点击回调函数 | (e: React.MouseEvent, item: BreadcrumbItemProps, index: number) => void | - |
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
title | 面包屑的内容 | ReactNode | - | - |
href | 设置按钮链接,设置后将用 a 标签渲染按钮 | string | - | 1 |
target | 同 a 标签的 target 属性,仅在设置 href 后有效 | string | ︎'_self' | '_blank' |
icon | 自定义图标 | ReactNode | - | 2 |
参数 | 变更类型 | 变更内容 | 解决的问题 |
---|---|---|---|
BreacrumbItem.path | deprecate | 不需要,暴露整个 item | |
onClick | update | 参数变化,能力增强 |
FAQs
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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.