ApiTagSection

Domain

Collapsible section grouping endpoints under a named tag — the primary navigation unit in API documentation.

Users tag (expanded)

Preview
Code
<ApiTagSection
  tag={{ tagId: 'tag-users', name: 'Users', description: 'User management endpoints' }}
  paths={[
    { pathItem: { path: '/users', operations: [getOp, postOp] } },
    { pathItem: { path: '/users/{userId}', operations: [deleteOp] } },
  ]}
  defaultOpen
/>

Collapsed by default

Preview
Code
<ApiTagSection
  tag={{ name: 'Auth', description: 'Authentication endpoints' }}
  paths={[{ pathItem: { path: '/auth/token', operations: [postOp] } }]}
  defaultOpen={false}
/>
Sourcemodules/domains/api-doc/ApiTagSection.tsx