yahoo/jafar

Add component view/Labels

Aberta

#28 aberto em 13 de fev. de 2020

 (0 comentário) (0 reação) (0 responsável)JavaScript (9 forks)auto 404
enhancementgood first issuehelp wanted

Métricas do repositório

Stars
 (109 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador