Skip to content

Custom type of button #4968

@Djaangoo

Description

@Djaangoo
  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

In antdv we can pass prop 'type' in AButton

that prop is used to create a class of button

with type="secondary" the button will have class 'ant-btn-secondary'

so we can style by this class

but it generates a warning about the wrong prop type

Example

styles of secondary button was created by
.ant-btn-secondary { .button-variant-primary(@purple-1; @purple-6) !important; }

What does the proposed API look like?

The type of button should have the possibility to add customization without creating a warning

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions