Newer
Older
iuav-ui / src / components / files-list / files-list-item.ts
@elcar elcar on 15 Jan 714 bytes :feat: lib (src), dist, test
/**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */

import {LitElement, html, css, unsafeCSS} from 'lit';
import {customElement, property} from 'lit/decorators.js';
import { breakpoints } from '../../breakpoints';

@customElement('iu-files-list-item')

export class FilesListItem extends LitElement {
  static override styles = css`
    :host{
        display:block;
    }
    li{
        width: 100%;
    }
  `;

  @property() text = '';
  @property() href = '';

  override render() {
    return html`
        <li><a href="${this.href}">${this.text}</a></li>
    `;
  }

}

declare global {
  interface HTMLElementTagNameMap {
    'iu-files-list-item': FilesListItem;
  }
}