import { html } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { watch } from '../../internal/watch.js';
import WebAwesomeElement from '../../internal/webawesome-element.js';
import styles from './{{ tagWithoutPrefix tag }}.css';

/**
 * @summary Short summary of the component's intended use.
 * @documentation https://webawesome.com/docs/components/{{ tagWithoutPrefix tag }}
 * @status experimental
 * @since 3.0
 *
 * @dependency wa-example
 *
 * @slot - The default slot.
 * @slot example - An example slot.
 *
 * @csspart base - The component's base wrapper.
 *
 * @cssproperty --example - An example CSS custom property.
 */
 @customElement("{{ tag }}")
export default class {{ properCase tag }} extends WebAwesomeElement {
  static css = styles;

  /** An example attribute. */
  @property() attr = 'example';

  @watch('example')
  handleExampleChange() {
    // do something
  }

  render() {
    return html` <slot></slot> `;
  }
}

declare global {
  interface HTMLElementTagNameMap {
    '{{ tag }}': {{ properCase tag }};
  }
}
