/** * Copyright Aquera Inc 2023 * * This source code is licensed under the BSD-3-Clause license found in the * LICENSE file in the root directory of this source tree. */ import {LitElement, html, CSSResultArray, TemplateResult,nothing} from 'lit'; import { customElement, query, state, property } from 'lit/decorators.js'; import {styles} from './nile-hero.css'; import NileElement from '../internal/nile-element'; import { classMap } from 'lit/directives/class-map.js'; /** * Nile hero component. * * @tag nile-hero * */ @customElement('nile-hero') export class NileHero extends NileElement { @property({ reflect: true }) icon: string = 'var(--nile-icon-action, var(--ng-icon-action))'; @property({ reflect: true, type: Boolean }) collapse: boolean = false; @property({ reflect: true, attribute: 'img-src' }) imgSrc: string = ''; @property({ reflect: true, attribute: 'hero-text' }) heroText: string = ''; /** * The styles for nile-hero * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]` */ public static get styles(): CSSResultArray { return [styles]; } /* #endregion */ /* #region Methods */ /** * Render method * @slot This is a slot test */ public render(): TemplateResult { return html`
`; } /* #endregion */ } export default NileHero; declare global { interface HTMLElementTagNameMap { 'nile-hero': NileHero; } }