Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About add tags #507

Open
dinhan92 opened this issue Jun 9, 2022 · 1 comment
Open

About add tags #507

dinhan92 opened this issue Jun 9, 2022 · 1 comment

Comments

@dinhan92
Copy link

dinhan92 commented Jun 9, 2022

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

@KaiSpencer
Copy link

@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%'}} />
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants