Blueprint: Feature request: Tab with icon props

Created on 22 Jan 2019  路  1Comment  路  Source: palantir/blueprint

Environment

  • __Package version(s)__:
  • __Browser and OS versions__:

Feature request

Tab with icon as props

Examples

screenshot 2019-01-22 at 6 47 02 pm

It would be great if one were able to pass in icon as a props, such as

icon="home" id="ng" title="Angular" panel={} />

I'm trying to implement navigation on the sidebar currently and I've been experimenting with Tab and Menu. It would be nice if Tab had icons just like menu because it seems like a component that is more suited for such navigational purposes (sidebar).

core feature request

Most helpful comment

@havesomeleeway sure, this is a reasonable request. in the meantime, you can try simply slapping an <Icon> in the title:

// fragments are react 16 only
<Tab title={<><Icon icon="home" /> Angular</>} />

>All comments

@havesomeleeway sure, this is a reasonable request. in the meantime, you can try simply slapping an <Icon> in the title:

// fragments are react 16 only
<Tab title={<><Icon icon="home" /> Angular</>} />
Was this page helpful?
0 / 5 - 0 ratings