2024-08-02 16:42:23 +00:00
|
|
|
/*!
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright Google LLC All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
|
* found in the LICENSE file at https://angular.dev/license
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import {h} from 'preact';
|
2025-05-06 20:59:30 +00:00
|
|
|
import {DocEntryRenderable} from '../entities/renderables.mjs';
|
2024-08-02 16:42:23 +00:00
|
|
|
import {HeaderApi} from './header-api';
|
2024-11-12 07:35:24 +00:00
|
|
|
import {SectionDescription} from './section-description';
|
2025-05-06 20:59:30 +00:00
|
|
|
import {API_REFERENCE_CONTAINER} from '../styling/css-classes.mjs';
|
2024-08-02 16:42:23 +00:00
|
|
|
|
|
|
|
|
/** Component to render a block or element API reference document. */
|
|
|
|
|
export function DocsReference(entry: DocEntryRenderable) {
|
|
|
|
|
return (
|
2024-11-12 07:35:24 +00:00
|
|
|
<div className={API_REFERENCE_CONTAINER}>
|
2024-08-02 16:42:23 +00:00
|
|
|
<HeaderApi entry={entry} />
|
2024-11-12 07:35:24 +00:00
|
|
|
<SectionDescription entry={entry} />
|
2024-08-02 16:42:23 +00:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|