Redocly / Redocly/redoc

React RedocStandalone change layout to stacked

Open
#2,645 4 comments 1 reaction 1 assignee View on GitHub

@AlexVarchuk is already working on this.

Since Jan 16, 2025.

Type: Enhancement
Dominant language
TypeScript
Stars
25.9k
Forks
2.4k
Avg merge
13h 10m
Merged PRs (30d)
4

Description

Describe the problem to be solved
Hello, I am using React <RedocStandalone /> component in my app and I need to change layout from three-panel to stacked. How can I achieve this ?

There is an option to do this via redocly.yaml spec: https://redocly.com/docs/realm/config/openapi/layout#examples, but how does this translate to props in React component ? There is no layout prop in typescript typings of RedocStandalone component.

Describe the solution you'd like
Pass layout as prop.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.