Skip to content

Allow non-string headers in TabbedPanel #1459

Description

@tpetrucciani

Currently TabbedPanel accepts only string headers. However, since it simply renders the header, accepting other React elements should be possible, and it would be useful to display SVG icons.

As an example, passing a header like

(
  <View shrink={false} vAlignContent="bottom">
    <MySvgIcon/>
    {label}
  </View>
) as any,

(bypassing type checking) seems to work OK.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions