Skip to content

Commit

Permalink
feat(cc-logs-control): add header slot
Browse files Browse the repository at this point in the history
Fixes #964
  • Loading branch information
pdesoyres-cc committed Mar 12, 2024
1 parent 63b8814 commit b6b4959
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/cc-logs-control/cc-logs-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ const PALETTES = {
* @cssdisplay grid
*
* @fires {CustomEvent<LogsControlOption>} cc-logs-control:option-change - Fires a `LogsControlOption` whenever an `option` changes.
*
* @slot header - The content of the space on top of the logs bloc.
*/
export class CcLogsControl extends LitElement {

Expand Down Expand Up @@ -278,7 +280,7 @@ export class CcLogsControl extends LitElement {

render () {
return html`
<div class="header"></div>
<div class="header"><slot name="header"></slot></div>
<cc-button
class="header-scroll-button"
Expand Down

0 comments on commit b6b4959

Please sign in to comment.