The <CodeGroup> component is currently used to display examples in different languages, etc. That functionality is moving to a <Tabs> component (https://github.com/nitrictech/docs/issues/612).
CodeGroup will instead be used to display examples that involve editing multiple files at once. For example we may have a step in a guide that involves edits a Service and the nitric.yaml file. The component would be used like this:
Note the new filename prop. We want the CodeGroup to render in a way that's reminiscent of a VSCode editor window (or similar text editor), where the filename is the tab label.
The current tag and label props for code fences can probably be removed.
The
<CodeGroup>
component is currently used to display examples in different languages, etc. That functionality is moving to a<Tabs>
component (https://github.com/nitrictech/docs/issues/612).CodeGroup will instead be used to display examples that involve editing multiple files at once. For example we may have a step in a guide that involves edits a Service and the component would be used like this:
nitric.yaml
file. TheNote the new
filename
prop. We want the CodeGroup to render in a way that's reminiscent of a VSCode editor window (or similar text editor), where the filename is the tab label.