
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@teamix/banner-card
Advanced tools
@teamix/banner-card
图文类卡片,大插图在右
参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 |
---|---|---|---|---|---|
title | 标题 | 否 | ReactNode | - | |
content | 内容文字 | 否 | ReactNode | - | |
className | 内容样式类名 | 否 | string | - | |
component | 右侧多媒体内容标签 | 否 | custom | 'img' | 同 Card.Media 内的component |
image | 右侧为图片时的背景图片地址,当与src同时不设置时不显示右侧区域 | 否 | string | - | 同 Card.Media 内的img |
src | 右侧多媒体源文件地址,当与image同时不设置时不显示右侧区域 | 否 | string | - | 同 Card.Media 内的src |
operation | 内容下方的按钮配置,每一项为Button的属性 | 否 | Button[] | - | |
gutter | 左侧内容与右侧多媒体文件的间距 | 否 | string/number | 100 | |
hasBorder | 卡片是否有边框 | 否 | boolean | true |
其余参数与Card一致
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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
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.