🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more
Socket
Book a DemoInstallSign in
Socket

uxcore-card

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uxcore-card

uxcore-card component for uxcore.

latest
Source
npmnpm
Version
0.1.19
Version published
Maintainers
3
Created
Source

uxcore-card

React card

NPM version build status Test Coverage Dependency Status devDependency Status NPM downloads

Sauce Test Status

Development

git clone https://github.com/uxcore/uxcore-card
cd uxcore-card
npm install
npm run server

if you'd like to save your install time,you can use uxcore-tools globally.

npm install uxcore-tools -g
git clone https://github.com/uxcore/uxcore-card
cd uxcore-card
npm install
npm run dep
npm run start

Test Case

npm run test

Coverage

npm run coverage

Demo

http://uxcore.github.io/components/card

Contribute

Yes please! See the CONTRIBUTING for details.

Props

NameTypeRequiredDefaultComments
prefixClsStringNo-类名前缀
classNameStringNo-额外类名
iconReact ElementNo-头部图标
titleReact ElementNo-头部标题
tipReact ElementNo-头部提示
overlayStyleOfTipObjectNo{ maxWidth: 400, textAlign: 'left' }头部提示样式
placementOfTipStringNo'top'头部提示的位置,one of ['left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight']
extraReact ElementNo-头部右侧额外区域,通用用于放置动作
childrenReact ElementNo-卡片内容
showCollapseIconBoolNofalse显示折叠按钮
onCollapseChangefunc(collapse)Nonoop折叠状态发生改变时的回调,参数为是否被折叠
contentHeightnumberNo内容区高度,用于固定卡片高度的场景,默认为内容区实际渲染高度
contentPaddingSizestringNo'middle'内容区间距,枚举值:middle/none
defaultCollapsedboolNofalse默认是否折叠

Keywords

react

FAQs

Package last updated on 09 Aug 2019

Did you know?

Socket

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.

Install

Related posts