Skip to content

Flag to add or not the dropdown-toggle class in Dropdown.Toggle #6907

@adrielairaldo

Description

@adrielairaldo

Is your feature request related to a problem? Please describe

No.

Describe the solution you'd like

Currently by default the dropdown-toggle class is being added to the Dropdown.Toggle element, but I believe it does not have to be mandatory.

There are certain cases where the toggle functionality might be required, but the :after with the triangle icon is not.

As determined by Bootstrap behavior (https://getbootstrap.com/docs/5.3/components/dropdowns/#usage), it is only necessary to use data-bs-toggle=“dropdown” to get the functionality, but it is not mandatory to use the dropdown-toggle class.

I imagine something like:

<Dropdown.Toggle showIcon='false'>

Thanks!

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions