react-trello icon indicating copy to clipboard operation
react-trello copied to clipboard

About add tags

Open dinhan92 opened this issue 3 years ago • 1 comments

I wonder how to add tags? Because I dont find any option to do it?

dinhan92 avatar Jun 09 '22 10:06 dinhan92

@dinhan92 From storybook, here is the example data for tags


() => {
    const data = {
      lanes: [
        {
          id: 'lane1',
          title: 'Planned Tasks',
          cards: [
            {
              id: 'Card1',
              title: 'Card1',
              description: 'foo card',
              metadata: {cardId: 'Card1'},
              tags: [
                {title: 'High', color: 'white', bgcolor: '#EB5A46'},
                {title: 'Tech Debt', color: 'white', bgcolor: '#0079BF'},
                {title: 'Very long tag that is', color: 'white', bgcolor: '#61BD4F'},
                {title: 'One more', color: 'white', bgcolor: '#61BD4F'}
              ]
            },
            {id: 'Card2', title: 'Card2', description: 'bar card', metadata: {cardId: 'Card2'}, tags: [{title: 'Low'}]}
          ]
        }
      ]
    }
    return <Board data={data} tagStyle={{fontSize: '80%'}} />
  }

KaiSpencer avatar Sep 08 '22 09:09 KaiSpencer