Proposal: Add Vertical TabView Support via New Prop Orientation #3751
Unanswered
NADIRATIF
asked this question in
PrimeReact
Replies: 1 comment 1 reply
-
|
marked as "Waiting for upvotes". this is a PrimeTek decision not mine... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @melloware ! 👋
I’d like to propose adding a vertical orientation feature to the
TabViewcomponent by introducing a new prop (e.g.,orientation). This would enhance flexibility for users who need vertical tab layouts (e.g., side navigation, responsive designs, or accessibility use cases).Problem Statement
Currently, the
TabViewcomponent only supports horizontal layouts. Many applications (e.g., dashboards, admin panels, or mobile-responsive UIs) require vertical tabs for better usability or space optimization. Without this feature, developers must implement custom workarounds, which can be error-prone and time-consuming.Proposed Solution
Add a new prop (e.g.,
orientation: "horizontal" | "vertical") to theTabViewcomponent.orientation="horizontal"(backward-compatible).orientation="vertical", tabs render vertically (e.g., flex-direction: column, adjusted styling, and keyboard navigation).Use Cases
Implementation Plan
I’d be happy to implement this feature! Here’s a rough outline:
orientationprop to the component’s API.Potential Concerns
TabViewcomponent.Feedback Request
What are your thoughts on this proposal? Are there edge cases or design considerations I might have missed? I’d love to collaborate to refine this!
Thank you for your time! 🙏
Beta Was this translation helpful? Give feedback.
All reactions