Skip to content

Why warning in custom container bu warn in built-in component Badge? #2080

Closed
@showmethecode9527

Description

@showmethecode9527

Feature request

What problem does this feature solve?

When using warning custom containers, we write like this:

::: warning
This is a warning
:::

and when using warn(warning) Badge, we write like this:

<Badge text="beta" type="warn"/>

in custom containers is warning but in built-in component Badge is warn, why?

What does the proposed API look like?

<!-- use warning rather than warn -->
<Badge text="beta" type="warning"/>

How should this be implemented in your opinion?

use warning as a optional value in built-in component Badge rather than warn.

Are you willing to work on this yourself?

No.

Metadata

Metadata

Assignees

No one assigned

    Labels

    has PRHas a related PRtopic: docsUsed when working with docs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions