/** * 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, } from 'lit'; import { customElement, query, property } from 'lit/decorators.js'; import { styles } from './nile-form-group.css'; import NileElement from '../internal/nile-element'; /** * Nile Form Group component. * * @tag nile-form-group * */ @customElement('nile-form-group') export class NileFormGroup extends NileElement { @query('.form__body') nileformgroup: HTMLInputElement; /** * The styles for FormGroup * @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]; } /** The Form Title . If you need to display HTML, use the `title` slot instead. */ @property({ type: String, reflect: true }) title = ''; /** The Form subtitle . If you need to display HTML, use the `subtitle` slot instead. */ @property({ type: String, reflect: true }) subtitle = ''; /* #endregion */ /* #region Methods */ /** * Render method * @slot This is a slot test */ public render(): TemplateResult { return html`