Skip to content

Add property as to change tag #26

Open

Description

@sergeysova
const Button = component('div', baseStyles)

<Button as="button" />

Allow to pass custom component and infer props from:

<Button as={MyButton} myProp={1} />
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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions