Skip to content

Commit

Permalink
add context to the component file
Browse files Browse the repository at this point in the history
  • Loading branch information
bagrub committed Jul 3, 2024
1 parent a692c33 commit 581336a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { Component, Host, h } from '@stencil/core';
import { Component, Host, h, Prop } from '@stencil/core';

@Component({
tag: 'cbp-app-header',
styleUrl: 'cbp-app-header.scss'
})
export class CbpAppHeader {


/** Specifies the context of the component as it applies to the visual design and whether it inverts when light/dark mode is toggled. Default behavior is "light-inverts" and does not have to be specified. */
@Prop({ reflect: true }) context: "light-inverts" | "light-always" | "dark-inverts" | "dark-always";

render() {
return (
<Host>
Expand Down

0 comments on commit 581336a

Please sign in to comment.