yahoo/jafar

Add component view/Labels

开放

#28 创建于 2020年2月13日

 (0 条评论) (0 个反应) (0 位负责人)JavaScript (9 个派生)auto 404
enhancementgood first issuehelp wanted

仓库指标

星标
 (109 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Add view component of Label to react-components package.

  • expected value - array of strings.

  • should have a state option of "inline" (default is true).

  • if inline = true, render the array of string as arr.join(', '). Should also have a "maxItems" (default to 20), and if has more items than 20 show a link of "Show all". When clicking it - it should open a modal that shows all the labels in a scrollable div, each item in one line.

  • if inline=false, render items in a scrollable div (max-height default to 150px). Each array item in one line

  • Add also an .md file similar to other components

贡献者指南