Skip to content

[BUG] Variants break when using styled(Button) and an as prop #506

Open
@korbinancell

Description

Describe the bug
Works as expected:

<Button as="a" variant="primary">link</Button>

Doesn't:

const Fancy = styled(Button).attrs({ as: 'a', variant: 'primary' })``
<Fancy>link</Fancy>

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions