1

I would like to not show the chevron (arrow down) next to the icon in my IconButton

const Support = (): React.ReactElement => {
  return (
    <IconButton
      iconProps={{ iconName: 'unknown' }}
      menuProps={menuItems}
    />
  )
}

enter image description here

Do you know how to do that? I have tried to use the ContextualMenu with an IconButton but the menu is positioned wrong (which I suspect is due to sitting inside layered Stack's).

Jens Madsen
  • 1,154
  • 1
  • 10
  • 18

1 Answers1

1

Use onRenderMenuIcon inside IconButton component:

const Support = (): React.ReactElement => {
  return (
    <IconButton
      menuProps={menuItems}
      onRenderMenuIcon={() => <div />} // also you can return undefined | null.
    />
  )
}

Codepen working example.

Marko Savic
  • 2,159
  • 2
  • 14
  • 27