ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
51.11k stars 13.5k forks source link

feat: navigate to/from views with any HTML element as it's root (no ion-content usage) #30010

Open drakedeatonuk opened 1 week ago

drakedeatonuk commented 1 week ago

Prerequisites

Describe the Feature Request

Currently you have to use ion-content (along with other optional root elements) to navigate to and from a view.

It would be nice if instead I could use any root element, such as a div.

if needed, maybe the root element could be given some type of tag that the navigation system could use, for example <div slot="content">

Describe the Use Case

This feature simplifies ionic framework's components. Most of the time devs dont need a lot of what the ion content, header & footer provides. often a simple grid layout will get you what you need.

This would also make the navigation system more modular by decoupling it from being tightly bound to the usage of specific components.l

Describe Preferred Solution

No response

Describe Alternatives

No response

Related Code

No response

Additional Information

No response