Skip to main content

Hey everyone!

We're excited to share that we've released two new methods in the Web SDK which can be used to group and ungroup items programmatically. With this stable release, you can now use the miro.board.group and group.ungroup methods to manage items, respectively.

Example of grouping items and adding them to a frame

const shape = await miro.board.createShape()
const card = await miro.board.createCard()
const text = await miro.board.createText()

const items = [shape, card, text]

const group = await miro.board.group({items})
const frame = await miro.board.createFrame();

// shape, card and text will also be added to the frame
// you can check their parentId property after this operation
await frame.add(group)

Groups doĀ notĀ support the following capabilities:

  • Mind maps
  • Tags
  • Metadata

For more details on these new methods, refer to our documentation onĀ groupĀ andĀ ungroupĀ methods in the Web SDK.

No replies yet...

Reply