mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
.. | ||
.storybook | ||
src | ||
index.ts | ||
jest.config.js | ||
kibana.jsonc | ||
package.json | ||
README.md | ||
tsconfig.json |
Shareable language documentation popover
This is a stateless shareable component that can be used to render documentation for a language as a popover.
It can be used in every application that would like to add an in-app documentation. The component consists of:
- A sidebar navigation with a search
- A details page
<LanguageDocumentationPopover language={language} sections={documentationSections} />
The properties are typed as:
export interface LanguageDocumentationSections {
groups: Array<{
label: string;
description?: string;
items: Array<{ label: string; description?: JSX.Element }>;
}>;
initialSection: JSX.Element;
}