Skip to content

feat(web-components/buttons): add support for essential anchor attributes #414

@malikarami

Description

@malikarami

Is your feature request related to a problem? Please describe.

This is how I am using the standard button to behave like an anchor:

      <a  
        href={reward.link.url}
        target="_blank"
        rel="noopener noreferrer"
        className={styles.link}
      >
        <TapButton variant="ghost" >
          some text
        </TapButton>
      </a>

I noticed that it can be used as an anchor as well by simply passing the href prop to it. But the problem is that, apart from target, I need to set other anchor attributes such as rel, But I can not as the property is not supported.

Describe the solution you'd like

I have two vague solutions on mind. Either defining all of the props of the a element for the standard button or creating another component that is exactly an anchor but supports all of the button skins.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions