Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@hi-ui/card
Advanced tools
@hi-ui/card
TODO: description
const Card = require('@hi-ui/card');
// TODO: DEMONSTRATE API
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
title | 设置卡片标题 | ReactNode | - | - |
size | 设置卡片大小 | string | 'sm' | 'md' | 'lg' | - |
bordered | 是否显示边框 | boolean | true | false | true |
type | 设置卡片类型 | string | 'simple' | 'default' | 'default' |
hoverable | 鼠标移入卡片时是否显示阴影 | boolean | true | false | false |
extra | 卡片右上角的扩展 | ReactNode | - | - |
coverUrl | 卡片的封面图片链接 | string | - | - |
cover | 卡片的封面 | ReactNode | - | - |
className | 卡片的自定义类名 | string | - | - |
style | 卡片的自定义样式 | CSSProperties | - | - |
showHeaderDivider | 是否展示卡片头部的分割线(仅在默认类型有效) | boolean | true | false | false |
参数 | 变更类型 | 变更内容 | 解决的问题 |
---|---|---|---|
type | deprecated | 移除 type 字段 | 不再区分是否为 simple 模式 |
content | deprecated | 移除 content 字段 | 统一 children 作为内容渲染 |
loading | feature | 增加加载状态 | 作为容器型组件,需要提供加载状态 |
cover | feature | 卡片封面支持 ReactNode | 卡片封面支持 ReactNode |
size | update | 更改定义为紧凑或者常规 | 1. card 作为容器,限制三种 width 无意义,同步新版 UI |
FAQs
A sub-package for @hi-ui/hiui.
The npm package @hi-ui/card receives a total of 23 weekly downloads. As such, @hi-ui/card popularity was classified as not popular.
We found that @hi-ui/card 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.