Skip to content

Conversation

@Coderxrohan
Copy link
Contributor

@Coderxrohan Coderxrohan commented Jan 5, 2026

Problem

In the PrimeReact v11 showcase, the API tab is rendered for all components.
For some components (e.g. Tabs), an API page does not exist, so clicking the API tab navigates users to a non-existent route and results in a 404.

Solution

This PR updates the documentation tab UI to conditionally hide the API tab when an API page is not available for a component.

  • UI-level fix only
  • No routing changes
  • No redirects
  • Prevents navigation to dead /api links
  • Aligns behavior with PrimeReact master

Result

  • Components without API pages → API tab is hidden
  • Components with API pages → API tab remains visible and works as expected
  • Direct URL access to non-existent /api routes remains unchanged (404), by design

Scope

  • apps/showcase/components/docs/doc-tabs.tsx

Fixes #8465 [v11] Backport: Hide API tab when API page is not available (Fixed in master)

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please manually link to an issue or mention it in the description using #<issue_id>.

@melloware melloware changed the title fix(showcase): hide API tab when API page is not available fix(showcase): V11 hide API tab when API page is not available Jan 5, 2026
@melloware melloware added this to the 11.0.0 milestone Jan 5, 2026
@melloware melloware added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Jan 5, 2026
@melloware melloware requested a review from tanerengiiin January 5, 2026 16:16
@Coderxrohan
Copy link
Contributor Author

Context & Resolution Summary

Follow-up for V11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Pending Review Issue or pull request is being reviewed by Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants