Skip to content

[Bug]: onPress prop not supported in ButtonProps #191

Description

@amitbeck

Prerequisites

  • I have searched existing issues to ensure this bug hasn't been reported already
  • I have tested this with the latest version of the components

Bug description

As per #183 edit section, the React Aria onPress prop cannot be used in <Button> as ButtonProps intentionally doesn't build on/extend React Aria's ButtonProps.

Steps to reproduce

Try to pass onPress as prop to <Button>

Expected behavior

No TypeScript error

Actual behavior

TypeScript error due to lack of support in ButtonProps

Code example

Browser

No response

Device type

No response

Component version

No response

Environment details

No response

Screenshots/Videos

No response

Console errors

Additional context

No response

Accessibility impact

  • This bug affects keyboard navigation
  • This bug affects screen reader users
  • This bug affects focus management
  • This bug affects color contrast or visual accessibility

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions