blob: 2050fe91c504680bb4d8ec42c0e716851f38f4ae [file] [edit]
// Copyright 2026 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import '../kit.js';
import * as Lit from '../../lit/lit.js';
const {html} = Lit;
export function render(container: HTMLElement): void {
Lit.render(html`
<style>
.content {
padding: 1em;
}
</style>
<h2>Collapsed section</h2>
<devtools-expandable-section heading="Collapsed section">
<div class="content">This is the content.</div>
</devtools-expandable-section>
<h2>Expanded section</h2>
<devtools-expandable-section heading="Expanded section" open>
<div class="content">This is the content.</div>
</devtools-expandable-section>
<h2>Section with actions</h2>
<devtools-expandable-section heading="Section with actions" open>
<span slot="actions">Slotted actions</span>
<div class="content">The actions are visible only while the section is expanded.</div>
</devtools-expandable-section>
`,
container);
}