Skip to content

Consider passing the title attribute through by default #2828

@davidjbng

Description

@davidjbng

Is there an existing request?

  • I have searched for this request

Describe the feature request

Use Case

Our main use case is an IconButton component using a Pressable where we want to set the title attributes for native tooltips on web.

Alternatives

  • Setting title works through refs (e.g. ref?.setAttribute('title', props.title) - This is a bit inconvenient while working with Typescript, but a valid workaround
  • Building a custom tooltip with the newly available Popover API would be more usable - This is way more work for simple titles and interestfor with hover trigger is not supported in all browsers yet

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequires extension or creation of new React Native API

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions