1
0
mirror of synced 2026-01-06 06:04:16 -05:00
Files
airbyte/docusaurus/src/components/FieldAnchor.jsx
Ian Alton 01cd16654e 11059 multi-instance, versioned docs (#58095)
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2025-04-24 02:58:09 +03:00

14 lines
792 B
JavaScript

import React from "react";
/**
* FieldAnchor is a dummy-component in the docusaurus build but is used when the documentation is rendered in the webapp
* to be able to highlight the relevant section for a focused field in the form next to the documentation.
*
* The "field" property has to be set to the field name in the form the section should be connected to: <FieldAnchor field="replication_method.replication_slot" />
* For oneOf fields, the selected mode has to be specified in square brackets: <FieldAnchor field="replication_method[CDC]" />
* It's possible to list multiple fields separated by comma: <FieldAnchor field="replication_method.replication_slot,replication_method.queue_size" />
*/
export const FieldAnchor = ({ children }) => {
return <div>{children}</div>;
};